| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | 2 | public function process(ContainerBuilder $container) |
|
| 15 | { |
||
| 16 | 2 | $delegation = $container->getDefinition('innmind_rest.client.decoder.delegation'); |
|
| 17 | 2 | $ids = $container->findTaggedServiceIds('innmind_rest.client.decoder'); |
|
| 18 | 2 | $decoders = []; |
|
| 19 | |||
| 20 | 2 | foreach ($ids as $id => $tags) { |
|
| 21 | 2 | $decoders[] = new Reference($id); |
|
| 22 | 2 | } |
|
| 23 | |||
| 24 | 2 | $delegation->replaceArgument(0, $decoders); |
|
| 25 | 2 | } |
|
| 26 | } |
||
| 27 |