Webiny\Component\Image\Bridge\Loader::setLibrary PHP Method

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;
    }