src/CommandBus/CommandBusCompilerPass.php 1 location
|
@@ 26-30 (lines=5) @@
|
23 |
|
$preMiddleWares = $container->findTaggedServiceIds('bruli.command_pre_middleware'); |
24 |
|
$postMiddleWares = $container->findTaggedServiceIds('bruli.command_post_middleware'); |
25 |
|
|
26 |
|
foreach ($commandHandlers as $id => $tags) { |
27 |
|
foreach ($tags as $attributes) { |
28 |
|
$definition->addMethodCall('addOption', [$attributes['handles'], $id]); |
29 |
|
} |
30 |
|
} |
31 |
|
|
32 |
|
foreach ($preMiddleWares as $id => $tags) { |
33 |
|
foreach ($tags as $attributes) { |
src/QueryBus/QueryBusCompilerPass.php 1 location
|
@@ 24-28 (lines=5) @@
|
21 |
|
$definition = $container->findDefinition('bruli.bus.options.resolver'); |
22 |
|
$queryHandlers = $container->findTaggedServiceIds('bruli.query_handler'); |
23 |
|
|
24 |
|
foreach ($queryHandlers as $id => $tags) { |
25 |
|
foreach ($tags as $attributes) { |
26 |
|
$definition->addMethodCall('addOption', [$attributes['handles'], $id]); |
27 |
|
} |
28 |
|
} |
29 |
|
} |
30 |
|
} |
31 |
|
|