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