Webiny\Component\TemplateEngine\Bridge\TemplateEngine::setLibrary PHP Method

setLibrary() public static method

Change the default library used for the driver.
public static setLibrary ( string $engineName, string $pathToClass )
$engineName string Name of the template engine for which to set the bridge library.
$pathToClass string Path to the new driver class. Must be an instance of \Webiny\Bridge\Cache\CacheInterface
    public static function setLibrary($engineName, $pathToClass)
    {
        self::$library[$engineName] = $pathToClass;
    }