src/DependencyInjection/Compiler/BuildCommandBusStackPass.php 1 location
|
@@ 54-62 (lines=9) @@
|
| 51 |
|
$services = $container->findTaggedServiceIds('innmind_command_bus'); |
| 52 |
|
$map = []; |
| 53 |
|
|
| 54 |
|
foreach ($services as $id => $tags) { |
| 55 |
|
foreach ($tags as $tag => $attributes) { |
| 56 |
|
if (!isset($attributes['alias'])) { |
| 57 |
|
throw new LogicException; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
$map[$attributes['alias']] = $id; |
| 61 |
|
} |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
return $map; |
| 65 |
|
} |
src/DependencyInjection/Compiler/RegisterHandlersPass.php 1 location
|
@@ 22-30 (lines=9) @@
|
| 19 |
|
$ids = $container->findTaggedServiceIds('innmind_command_bus.handler'); |
| 20 |
|
$services = []; |
| 21 |
|
|
| 22 |
|
foreach ($ids as $id => $tags) { |
| 23 |
|
foreach ($tags as $tag => $attributes) { |
| 24 |
|
if (!isset($attributes['handles'])) { |
| 25 |
|
throw new LogicException; |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
$services[$attributes['handles']] = $id; |
| 29 |
|
} |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
$container |
| 33 |
|
->getDefinition('innmind_command_bus.default') |