Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function __invoke(ContainerInterface $container) |
|
17 | { |
||
18 | 1 | $config = $container->get('config')['pug']; |
|
19 | |||
20 | 1 | $pug = new Pug([ |
|
21 | 1 | 'pugjs' => $config['pugjs'], |
|
22 | 1 | 'localsJsonFile' => $config['localsJsonFile'], |
|
23 | 1 | 'pretty' => $config['pretty'], |
|
24 | 1 | 'cache' => $config['cache'], |
|
25 | 1 | 'expressionLanguage' => $config['expressionLanguage'], |
|
26 | ]); |
||
27 | |||
28 | 1 | $this->addOns($pug, $container, $config); |
|
29 | |||
30 | 1 | return $pug; |
|
31 | } |
||
32 | |||
42 |