| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 63 | private function mapServiceByTag(ContainerBuilder $container, Routing $routing, $serviceId, $attributes) |
|
| 29 | { |
||
| 30 | 63 | $definition = $container->getDefinition($serviceId); |
|
| 31 | |||
| 32 | 63 | if (!$this->isSupported($definition, $attributes)) { |
|
| 33 | 24 | return; |
|
| 34 | } |
||
| 35 | |||
| 36 | 57 | foreach ($this->findCommandsForService($definition, $attributes) as $commandClassName) { |
|
| 37 | 48 | if (isset($attributes['bus'])) { |
|
| 38 | 27 | $routing->routeToBus($attributes['bus'], $commandClassName, $serviceId); |
|
| 39 | } else { |
||
| 40 | 39 | $routing->routeToAllBuses($commandClassName, $serviceId); |
|
| 41 | } |
||
| 42 | } |
||
| 43 | 48 | } |
|
| 44 | |||
| 49 |