PHP Class Webiny\Component\Image\Bridge\Loader

Inheritance: use trait Webiny\Component\StdLib\FactoryLoaderTrait, use trait Webiny\Component\StdLib\StdLibTrait
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
getImageLoader ( ConfigObject $config ) : Webiny\Component\Image\ImageLoaderInterface Returns an instance of ImageLoaderInterface based on current bridge.
setLibrary ( string $pathToClass ) Change the default library used for the driver.

Private Methods

Method Description
getLibrary ( ) : string Get the name of bridge library which will be used as the driver.

Method Details

getImageLoader() public static method

Returns an instance of ImageLoaderInterface based on current bridge.
public static getImageLoader ( ConfigObject $config ) : Webiny\Component\Image\ImageLoaderInterface
$config Webiny\Component\Config\ConfigObject
return Webiny\Component\Image\ImageLoaderInterface

setLibrary() public static method

Change the default library used for the driver.
public static setLibrary ( string $pathToClass )
$pathToClass string Path to the new driver class. Must be an instance of \Webiny\Component\Image\Bridge\ImageLoaderInterface