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