| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 4.0058 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 36 | public function process(ContainerBuilder $container) |
|
| 25 | { |
||
| 26 | 36 | if (!$container->has(self::REGISTRY_ID)) { |
|
| 27 | return; |
||
| 28 | } |
||
| 29 | |||
| 30 | 36 | $definition = $container->findDefinition(self::REGISTRY_ID); |
|
| 31 | |||
| 32 | 36 | $taggedServices = $container->findTaggedServiceIds(self::HANDLER_TAG); |
|
| 33 | 36 | foreach ($taggedServices as $id => $tags) { |
|
| 34 | 36 | foreach ($tags as $attributes) { |
|
| 35 | 36 | $definition->addMethodCall( |
|
| 36 | 36 | self::ADD_FUNCTION_NAME, |
|
| 37 | 36 | [$attributes[self::HANDLER_NAME_ATTRIBUTE], new Reference($id)] |
|
| 38 | 24 | ); |
|
| 39 | 24 | } |
|
| 40 | 24 | } |
|
| 41 | 36 | } |
|
| 42 | } |
||
| 43 |