1 | <?php namespace Limoncello\Templates; |
||
27 | class TwigTemplates implements TemplatesInterface, TemplatesCacheInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var Twig_Environment |
||
31 | */ |
||
32 | private $twig; |
||
33 | |||
34 | /** |
||
35 | * @param string $appRootFolder |
||
36 | * @param string $templatesFolder |
||
37 | * @param null|string $cacheFolder |
||
38 | * @param bool $isDebug |
||
39 | */ |
||
40 | 5 | public function __construct(string $appRootFolder, string $templatesFolder, ?string $cacheFolder, bool $isDebug) |
|
51 | |||
52 | /** |
||
53 | * @return Twig_Environment |
||
54 | */ |
||
55 | 1 | public function getTwig(): Twig_Environment |
|
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | 1 | public function render(string $name, array $context = []): string |
|
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | */ |
||
71 | 1 | public function cache(string $name): void |
|
75 | } |
||
76 |