Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
19 | public function __construct(array $templateDirs, array $options, string $ext = 'twig', array $globals = []) { |
||
20 | $loader = new FilesystemLoader($templateDirs); |
||
21 | $this->engine = new Environment($loader, $options); |
||
22 | foreach ($globals as $name => $value) { |
||
23 | $this->engine->addGlobal($name, $value); |
||
24 | } |
||
25 | $this->ext = $ext; |
||
26 | } |
||
32 |