Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Webiny
Component
Image
Bridge
Loader
setLibrary
Webiny\Component\Image\Bridge\Loader::setLibrary PHP Method
Loader Class Documentation
Show file
Open project: Webiny/Framework
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
public static function setLibrary($pathToClass) { self::$library = $pathToClass; }
Loader
getImageLoader
getLibrary
setLibrary