1 | <?php |
||
15 | class TwigEngine extends Twig_Environment implements TemplateEngine { |
||
16 | |||
17 | /** |
||
18 | * An array of template variables available when rendering a template. |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | private $variables = []; |
||
23 | |||
24 | /** |
||
25 | * Create a new Twig engine and add the Stitcher specific template functions. |
||
26 | */ |
||
27 | public function __construct() { |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function renderTemplate(SplFileInfo $template) { |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function addTemplateVariables(array $variables) { |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function clearTemplateVariables() { |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function addTemplateVariable($name, $value) { |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function clearTemplateVariable($variable) { |
||
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | public function getTemplateExtension() { |
||
102 | } |
||
103 |