Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
29 | 4 | public function process(ContainerBuilder $container): void |
|
30 | { |
||
31 | 4 | if (!$container->hasParameter(self::TWIG_CONFIG_PARAMETER_NAME)) { |
|
32 | 1 | throw new NotSupportedException(\sprintf('The "%s" parameter should already be set in the container builder.', self::TWIG_CONFIG_PARAMETER_NAME)); |
|
33 | } |
||
34 | |||
35 | 3 | $container->setParameter(self::TWIG_CONFIG_PARAMETER_NAME, \array_merge($container->getParameter(self::TWIG_CONFIG_PARAMETER_NAME), $this->getOverrides())); |
|
36 | 3 | } |
|
43 |