Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2.0054 |
Changes | 6 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
22 | 2 | public function process(ContainerBuilder $container) |
|
23 | { |
||
24 | 2 | $appKernel = $container->getDefinition('AppKernel'); |
|
25 | 2 | $middlewares = $container->getParameter('application.middlewares'); |
|
26 | |||
27 | 2 | $references = []; |
|
28 | 2 | foreach ($middlewares as $serviceId) { |
|
29 | $references[] = new Reference($serviceId); |
||
30 | } |
||
31 | |||
32 | 2 | $appKernel->replaceArgument(3, $references); |
|
33 | 2 | $container->setParameter('application.middlewares', []); |
|
34 | 2 | } |
|
35 | } |
||
36 |