| Conditions | 6 |
| Paths | 4 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function boot(Application $app) |
||
| 46 | { |
||
| 47 | if (class_exists('Twig_Environment')) { |
||
| 48 | $extension = new CalendRExtension($app['calendr']); |
||
| 49 | if (isset($app['calendr.twig']) && 'Twig_Environment' == get_class($app['calendr.twig'])) { |
||
| 50 | $app['calendr.twig']->addExtension($extension); |
||
| 51 | } elseif (isset($app['twig']) && 'Twig_Environment' == get_class($app['twig'])) { |
||
| 52 | $app['twig']->addExtension($extension); |
||
| 53 | } |
||
| 54 | } |
||
| 55 | } |
||
| 56 | } |
||
| 57 |