| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 4.679 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 2 | public function process(ContainerBuilder $container): void |
|
| 21 | { |
||
| 22 | 2 | if (!$container->hasDefinition('patch_manager.operation_matcher')) { |
|
| 23 | 2 | return; |
|
| 24 | } |
||
| 25 | |||
| 26 | $definition = $container->getDefinition('patch_manager.operation_matcher'); |
||
| 27 | $taggedServices = $container->findTaggedServiceIds(self::PATCH_MANAGER_HANDLER_TAG); |
||
| 28 | foreach ($taggedServices as $id => $tags) { |
||
| 29 | $definition->addMethodCall('addHandler', [new Reference($id)]); |
||
| 30 | } |
||
| 33 |