Skip to content

Commit

Permalink
Set batch and anonymous consumers public (bugfix for Symfony 4) (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobchenko authored and skafandri committed May 2, 2018
1 parent d034336 commit 7471ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/Compiler/RegisterPartsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function process(ContainerBuilder $container)
'old_sound_rabbit_mq.consumer',
'old_sound_rabbit_mq.multi_consumer',
'old_sound_rabbit_mq.anon_consumer',
'old_sound_rabbit_mq.batch_consumer',
'old_sound_rabbit_mq.rpc_client',
'old_sound_rabbit_mq.rpc_server',
);
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/OldSoundRabbitMqExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ protected function loadAnonConsumers()
{
foreach ($this->config['anon_consumers'] as $key => $anon) {
$definition = new Definition('%old_sound_rabbit_mq.anon_consumer.class%');
$definition->setPublic(true);
$definition
->setPublic(true)
->addTag('old_sound_rabbit_mq.base_amqp')
Expand Down

0 comments on commit 7471ccf

Please sign in to comment.