Skip to content

Commit eca2499

Browse files
committed
Fixing a bug
The $callbacks are eventually passed to addDequeuerAwareCall, which expects a string, not a Reference object. In Symfony 3, the Reference was cast to a string, which returned the id, so it worked.
1 parent f747789 commit eca2499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/OldSoundRabbitMqExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ protected function loadMultipleConsumers()
255255
foreach ($consumer['queues'] as $queueName => $queueOptions) {
256256
$queues[$queueOptions['name']] = $queueOptions;
257257
$queues[$queueOptions['name']]['callback'] = array(new Reference($queueOptions['callback']), 'execute');
258-
$callbacks[] = new Reference($queueOptions['callback']);
258+
$callbacks[] = $queueOptions['callback'];
259259
}
260260

261261
$definition = new Definition('%old_sound_rabbit_mq.multi_consumer.class%');

0 commit comments

Comments
 (0)