コード例 #1
0
ファイル: Engine.php プロジェクト: akitech/hooks-src
 public function __construct(LoaderInterface $loader, $cachePath)
 {
     parent::__construct($loader, $cachePath);
     $this->addDirective(new StringDirective());
     $this->addDirective(new ImageDirective());
 }
コード例 #2
0
 /**
  * @param TemplateNameParserInterface $nameParser
  * @param LoaderInterface             $loader
  * @param string                      $cachePath
  */
 public function __construct(TemplateNameParserInterface $nameParser, LoaderInterface $loader, $cachePath = null)
 {
     parent::__construct($loader, $cachePath);
     $this->nameParser = $nameParser;
 }