src/AssetFactory.php
public static function createFromPath($path)
    {
        if (!file_exists($path)) {
            throw new Exception\FactoryException(sprintf('Unable to open file %s', $path));
        }
        $file = new \SplFileInfo($path);
        return static::createFromSplFileInfo($file);
    }
public static function createFromPath($path)
    {
        if (!file_exists($path)) {
            throw new Exception\FactoryException(sprintf('Unable to open file %s', $path));
        }
        $file = new \SplFileInfo($path);
        return static::createFromSplFileInfo($file);
    }
public static function createFromPath ( $ path ) { if ( ! file_exists ( $ path ) ) { throw new Exception \ FactoryException ( sprintf ( 'Unable to open file %s' , $ path ) ) ; } $ file = new \ SplFileInfo ( $ path ) ; return static :: createFromSplFileInfo ( $ file ) ; }
Creates an Asset from a file path

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