public function __construct(LoaderInterface $loader, $cachePath) { parent::__construct($loader, $cachePath); $this->addDirective(new StringDirective()); $this->addDirective(new ImageDirective()); }
/** * @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; }