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