PHP Класс Webiny\Component\Image\Bridge\Loader

Наследование: use trait Webiny\Component\StdLib\FactoryLoaderTrait, use trait Webiny\Component\StdLib\StdLibTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
getLibrary ( ) : string Get the name of bridge library which will be used as the driver.

Описание методов

getImageLoader() публичный статический Метод

Returns an instance of ImageLoaderInterface based on current bridge.
public static getImageLoader ( ConfigObject $config ) : Webiny\Component\Image\ImageLoaderInterface
$config Webiny\Component\Config\ConfigObject
Результат Webiny\Component\Image\ImageLoaderInterface

setLibrary() публичный статический Метод

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