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