| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 2 | public function process(ContainerBuilder $container) |
|
| 20 | { |
||
| 21 | 2 | $services = $container->findTaggedServiceIds(self::TAG); |
|
| 22 | 2 | foreach ($services as $serviceId => $tags) { |
|
| 23 | 1 | $child = $container->getDefinition($serviceId); |
|
| 24 | 1 | $parent = $container->getDefinition($tags[0]['parent']); |
|
| 25 | |||
| 26 | 1 | foreach ($child->getMethodCalls() as list($method, $arguments)) { |
|
| 27 | 1 | $parent->addMethodCall($method, $arguments); |
|
| 28 | } |
||
| 29 | 1 | $container->removeDefinition($serviceId); |
|
| 30 | } |
||
| 31 | 2 | } |
|
| 32 | } |
||
| 33 |