| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | 1 | public function __invoke(ContainerInterface $container): TemplateRenderer |
|
| 14 | { |
||
| 15 | 1 | $pugConfig = PugConfig::createFromAntidotConfig($container->get('config')); |
|
| 16 | |||
| 17 | 1 | return new PugTemplateRenderer( |
|
| 18 | 1 | $container->get(Pug::class), |
|
| 19 | 1 | $pugConfig->get('default_params'), |
|
| 20 | 1 | $pugConfig->get('globals'), |
|
| 21 | 1 | array_merge( |
|
| 22 | 1 | $pugConfig->templates(), |
|
| 23 | [ |
||
| 24 | 1 | 'template_path' => $pugConfig->get('template_path') |
|
| 25 | ] |
||
| 30 |