Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function process(ContainerBuilder $container) |
||
14 | { |
||
15 | $commandHandlersTags = $container->findTaggedServiceIds('command_handler'); |
||
16 | $commandCollector = $container->getDefinition('command_bus_console.command_collector'); |
||
17 | |||
18 | $commands = []; |
||
19 | |||
20 | foreach ($commandHandlersTags as $service) { |
||
21 | foreach ($service as $tags) { |
||
22 | $commands[] = $tags['handles']; |
||
23 | } |
||
24 | } |
||
25 | |||
26 | $commandCollector->addMethodCall('processCommandServices', [$commands]); |
||
27 | } |
||
28 | } |
||
29 |