Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
14 | { |
||
15 | $config = $container->get('config'); |
||
16 | $globals = $container->get('globals'); |
||
17 | $loader = new Twig_Loader_Filesystem($config['app']['templates_path']); |
||
18 | $twig = new Twig_Environment($loader, $config['app']['twig']); |
||
19 | $twig->addGlobal('lang', $globals['runtime_lang']); |
||
20 | return $twig; |
||
21 | } |
||
22 | } |