| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function process(ContainerBuilder $container) |
||
| 21 | { |
||
| 22 | if (!$container->hasDefinition(self::RESULT_REPORTER_MANAGER)) { |
||
| 23 | return; |
||
| 24 | } |
||
| 25 | |||
| 26 | $definition = $container->getDefinition(self::RESULT_REPORTER_MANAGER); |
||
| 27 | $taggedServices = $container->findTaggedServiceIds(self::RESULT_REPORTER_TAG); |
||
| 28 | |||
| 29 | foreach ($taggedServices as $id => $tags) { |
||
| 30 | $definition->addMethodCall( |
||
| 31 | 'add', |
||
| 32 | [new Reference($id)] |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 |