src/AssetFactory.php
public static function createFromUri($uri)
    {
        $name = substr($uri, strrpos($uri, '/'));
        $path = sprintf('%s/%s', sys_get_temp_dir(), $name);
        copy($uri, $path);
        return static::createFromPath($path);
    }
public static function createFromUri($uri)
    {
        $name = substr($uri, strrpos($uri, '/'));
        $path = sprintf('%s/%s', sys_get_temp_dir(), $name);
        copy($uri, $path);
        return static::createFromPath($path);
    }
public static function createFromUri ( $ uri ) { $ name = substr ( $ uri , strrpos ( $ uri , '/' ) ) ; $ path = sprintf ( '%s/%s' , sys_get_temp_dir ( ) , $ name ) ; copy ( $ uri , $ path ) ; return static :: createFromPath ( $ path ) ; }
Creates an Asset from a URI

@param   string          $uri
@throws  Exception\FactoryException  If the file could not be loaded
@return  Asset
Creates an Asset from a URI