Skip to content

Commit 7471ccf

Browse files
sobchenkoskafandri
authored andcommitted
Set batch and anonymous consumers public (bugfix for Symfony 4) (#535)
1 parent d034336 commit 7471ccf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

DependencyInjection/Compiler/RegisterPartsPass.php

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function process(ContainerBuilder $container)
2525
'old_sound_rabbit_mq.consumer',
2626
'old_sound_rabbit_mq.multi_consumer',
2727
'old_sound_rabbit_mq.anon_consumer',
28+
'old_sound_rabbit_mq.batch_consumer',
2829
'old_sound_rabbit_mq.rpc_client',
2930
'old_sound_rabbit_mq.rpc_server',
3031
);

DependencyInjection/OldSoundRabbitMqExtension.php

+1
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ protected function loadAnonConsumers()
442442
{
443443
foreach ($this->config['anon_consumers'] as $key => $anon) {
444444
$definition = new Definition('%old_sound_rabbit_mq.anon_consumer.class%');
445+
$definition->setPublic(true);
445446
$definition
446447
->setPublic(true)
447448
->addTag('old_sound_rabbit_mq.base_amqp')

0 commit comments

Comments
 (0)