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