Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
29 | public function process(ContainerBuilder $container) |
||
30 | { |
||
31 | if (!$container->hasDefinition(TaggedServices::class)) { |
||
32 | return; |
||
33 | } |
||
34 | |||
35 | $manager = $container->getDefinition(TaggedServices::class); |
||
36 | |||
37 | $definitions = $container->getDefinitions(); |
||
38 | foreach ($definitions as $id => $definition) { |
||
39 | foreach ($definition->getTags() as $tagName => $tagAttributes) { |
||
40 | $manager->addMethodCall( |
||
41 | 'addSpecification', |
||
42 | [$id, $tagName, $tagAttributes[0]] |
||
43 | ); |
||
48 |