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