Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
21 | public function process(ContainerBuilder $container) |
||
22 | { |
||
23 | if (!$container->has('domain_event.locator.named_event')) { |
||
24 | return; |
||
25 | } |
||
26 | |||
27 | $definition = $container->findDefinition('domain_event.locator.named_event'); |
||
28 | foreach ($container->findTaggedServiceIds('domain_event.named_event_listener') as $id => $attributes) { |
||
29 | $definition->addMethodCall('register', [new Reference($id), $attributes[0]['event']]); |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 |