| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | public function process(ContainerBuilder $container): void |
||
| 20 | { |
||
| 21 | if (!$container->has(self::EVENT_DISPATCHER_SERVICE_ID)) { |
||
| 22 | return; |
||
| 23 | } |
||
| 24 | $taggedConsumers = $container->findTaggedServiceIds('old_sound_rabbit_mq.base_amqp'); |
||
| 25 | |||
| 26 | foreach ($taggedConsumers as $id => $tag) { |
||
| 27 | $definition = $container->getDefinition($id); |
||
| 28 | $definition->addMethodCall( |
||
| 29 | 'setEventDispatcher', |
||
| 30 | [ |
||
| 31 | new Reference(self::EVENT_DISPATCHER_SERVICE_ID, ContainerInterface::IGNORE_ON_INVALID_REFERENCE), |
||
| 32 | ] |
||
| 37 |