Conditions | 4 |
Paths | 8 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function __invoke(ContainerInterface $container) |
||
26 | { |
||
27 | $config = $container->get('config'); |
||
28 | |||
29 | $cacheEnabled = (isset($config['view']['cache']))? (bool)$config['view']['cache'] : false; |
||
30 | $layout = (isset($config['view']['layout']) && is_string($config['view']['layout'])) |
||
31 | ? $config['view']['layout'] : 'CargoUI/view/layout/layout.phtml'; |
||
32 | |||
33 | return new Main($layout, $cacheEnabled, $container->get(RiotCompiler::class)); |
||
34 | } |
||
35 | } |