Ejemplo n.º 1
0
 public function __construct(EngineInterface $templateEngine)
 {
     $this->templateEngine = $templateEngine;
     $this->templateEngine->setViewPaths([__DIR__ . '/../templates']);
 }
Ejemplo n.º 2
0
 public function __construct(EngineInterface $renderer, RuntimeProviderInterface $runtime)
 {
     $this->renderer = $renderer;
     $this->runtime = $runtime;
     $this->renderer->setViewPaths([$this->getTemplatesFolder()]);
 }