Skip to content

Commit a7d1a7c

Browse files
bouke-nederstigtskafandri
authored andcommitted
Make sure dynamic consumer definition doesn’t mess with fabric setup (#463)
1 parent 739532e commit a7d1a7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Command/SetupFabricCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace OldSound\RabbitMqBundle\Command;
44

5+
use OldSound\RabbitMqBundle\RabbitMq\DynamicConsumer;
56
use Symfony\Component\Console\Input\InputInterface;
67
use Symfony\Component\Console\Input\InputOption;
78
use Symfony\Component\Console\Output\OutputInterface;
@@ -29,6 +30,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
2930

3031
foreach (array('base_amqp', 'binding') as $key) {
3132
foreach ($partsHolder->getParts('old_sound_rabbit_mq.' . $key) as $baseAmqp) {
33+
if ($baseAmqp instanceof DynamicConsumer) {
34+
continue;
35+
}
3236
$baseAmqp->setupFabric();
3337
}
3438
}

0 commit comments

Comments
 (0)