PHP Class Webiny\Component\Image\Bridge\Loader

Inheritance: use trait Webiny\Component\StdLib\FactoryLoaderTrait, use trait Webiny\Component\StdLib\StdLibTrait
Afficher le fichier Open project: Webiny/Framework Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

getImageLoader() public static méthode

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

setLibrary() public static méthode

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