Skip to content

Commit 95f23bb

Browse files
authored
Remove duplicate $definition->setPublic(true);
1 parent 92c17e6 commit 95f23bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

DependencyInjection/OldSoundRabbitMqExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ protected function loadBatchConsumers()
387387
{
388388
foreach ($this->config['batch_consumers'] as $key => $consumer) {
389389
$definition = new Definition('%old_sound_rabbit_mq.batch_consumer.class%');
390-
$definition->setPublic(true);
391390

392391
if (!isset($consumer['exchange_options'])) {
393392
$consumer['exchange_options'] = $this->getDefaultExchangeOptions();
@@ -441,8 +440,7 @@ protected function loadBatchConsumers()
441440
protected function loadAnonConsumers()
442441
{
443442
foreach ($this->config['anon_consumers'] as $key => $anon) {
444-
$definition = new Definition('%old_sound_rabbit_mq.anon_consumer.class%');
445-
$definition->setPublic(true);
443+
$definition = new Definition('%old_sound_rabbit_mq.anon_consumer.class%');
446444
$definition
447445
->setPublic(true)
448446
->addTag('old_sound_rabbit_mq.base_amqp')

0 commit comments

Comments
 (0)