| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | private function mapServiceByTag(ContainerBuilder $container, Routing $routing, $serviceId, $attributes) |
||
| 29 | { |
||
| 30 | $definition = $container->getDefinition($serviceId); |
||
| 31 | |||
| 32 | if (!$this->isSupported($definition, $attributes)) { |
||
| 33 | return; |
||
| 34 | } |
||
| 35 | |||
| 36 | foreach ($this->findCommandsForService($definition, $attributes) as $commandClassName) { |
||
| 37 | if (isset($attributes['bus'])) { |
||
| 38 | $routing->routeToBus($attributes['bus'], $commandClassName, $serviceId); |
||
| 39 | } else { |
||
| 40 | $routing->routeToAllBuses($commandClassName, $serviceId); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 48 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.