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