PHP 클래스 Webiny\Component\TemplateEngine\Bridge\TemplateEngine

상속: use trait Webiny\Component\StdLib\StdLibTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
getInstance ( string $engineName, ConfigObject $config ) : Webiny\Component\TemplateEngine\Bridge\TemplateEngineInterface Create an instance of an TemplateEngine driver.
setLibrary ( string $engineName, string $pathToClass ) Change the default library used for the driver.

비공개 메소드들

메소드 설명
getLibrary ( string $engineName ) : string Get the name of bridge library which will be used as the driver.

메소드 상세

getInstance() 공개 정적인 메소드

Create an instance of an TemplateEngine driver.
public static getInstance ( string $engineName, ConfigObject $config ) : Webiny\Component\TemplateEngine\Bridge\TemplateEngineInterface
$engineName string Name of the template engine for which to load the instance.
$config Webiny\Component\Config\ConfigObject Template engine config.
리턴 Webiny\Component\TemplateEngine\Bridge\TemplateEngineInterface

setLibrary() 공개 정적인 메소드

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