Conditions | 4 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function warmUp($cacheDir) |
||
36 | { |
||
37 | $twig = $this->container->get('twig'); |
||
38 | |||
39 | foreach ($this->finder->findAllTemplates() as $template) { |
||
40 | |||
41 | if ('twital' !== $template->get('engine')) { |
||
42 | continue; |
||
43 | } |
||
44 | |||
45 | try { |
||
46 | $twig->loadTemplate($template); |
||
47 | } catch (\Twig_Error $e) { |
||
48 | // problem during compilation, give up |
||
49 | } |
||
50 | } |
||
51 | } |
||
52 | |||
63 |