Method | Description | |
---|---|---|
getInstance ( string $engineName, |
Create an instance of an TemplateEngine driver. | |
setLibrary ( string $engineName, string $pathToClass ) | Change the default library used for the driver. |
Method | Description | |
---|---|---|
getLibrary ( string $engineName ) : string | Get the name of bridge library which will be used as the driver. |
public static getInstance ( string $engineName, |
||
$engineName | string | Name of the template engine for which to load the instance. |
$config | Template engine config. | |
return | Webiny\Component\TemplateEngine\Bridge\TemplateEngineInterface |
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 |