Skip to content

Commit 58eb517

Browse files
authored
Merge pull request #495 from koktaildotcom/bug/491
Make consumers accessible for public in symfony 3.2.x
2 parents 7431adc + e1bac60 commit 58eb517

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DependencyInjection/OldSoundRabbitMqExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ protected function loadConsumers()
182182
{
183183
foreach ($this->config['consumers'] as $key => $consumer) {
184184
$definition = new Definition('%old_sound_rabbit_mq.consumer.class%');
185+
$definition->setPublic(true);
185186
$definition->addTag('old_sound_rabbit_mq.base_amqp');
186187
$definition->addTag('old_sound_rabbit_mq.consumer');
187188
//this consumer doesn't define an exchange -> using AMQP Default
@@ -259,6 +260,7 @@ protected function loadMultipleConsumers()
259260
}
260261

261262
$definition = new Definition('%old_sound_rabbit_mq.multi_consumer.class%');
263+
$definition->setPublic(true);
262264
$definition
263265
->addTag('old_sound_rabbit_mq.base_amqp')
264266
->addTag('old_sound_rabbit_mq.multi_consumer')

0 commit comments

Comments
 (0)