Conditions | 4 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4.25 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 6 | public function process(ContainerBuilder $container) |
|
25 | { |
||
26 | 6 | if ($container->has('fos_rest.exception_listener') && $container->has('twig.exception_listener')) { |
|
27 | $container->removeDefinition('twig.exception_listener'); |
||
28 | } |
||
29 | |||
30 | 6 | if (!$container->has('templating.engine.twig')) { |
|
31 | 5 | $container->removeDefinition('fos_rest.exception.twig_controller'); |
|
32 | 5 | } |
|
33 | 6 | } |
|
34 | } |
||
35 |