| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.0261 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 1 | public function process(ContainerBuilder $container) |
|
| 18 | { |
||
| 19 | 1 | if (!$container->hasDefinition(static::QUEUE_PRODUCER_CHAIN_STRATEGY)) { |
|
| 20 | return; |
||
| 21 | } |
||
| 22 | |||
| 23 | 1 | $chainDefinition = $container->getDefinition(static::QUEUE_PRODUCER_CHAIN_STRATEGY); |
|
| 24 | |||
| 25 | 1 | foreach ($container->findTaggedServiceIds(self::TACTICIAN_MIDDLEWARE_STRATEGY_TAG) as $serviceId => $tags) { |
|
| 26 | 1 | $chainDefinition->addMethodCall('addStrategy', [new Reference($serviceId)]); |
|
| 27 | } |
||
| 28 | 1 | } |
|
| 29 | } |
||
| 30 |