diff --git a/src/WorkerBundle/Commands/ShowQueueConfigurationCommand.php b/src/WorkerBundle/Commands/ShowQueueConfigurationCommand.php index b4ae9c8..5b4274a 100644 --- a/src/WorkerBundle/Commands/ShowQueueConfigurationCommand.php +++ b/src/WorkerBundle/Commands/ShowQueueConfigurationCommand.php @@ -6,6 +6,7 @@ use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\Yaml\Yaml; class ShowQueueConfigurationCommand extends Command { @@ -31,10 +32,10 @@ protected function configure() public function execute(InputInterface $input, OutputInterface $output) { - foreach ($this->queueRegistry->getConfigurations() as $configuration) { - var_dump($configuration); - } + $output->writeln([ '', 'Configured queues: ' ]); - var_dump($this->queueRegistry->getQueue('worker-queue')); + foreach ($this->queueRegistry->getConfigurations() as $name => $configuration) { + $output->writeln([ ' ' . $name . ': ' . Yaml::dump($configuration, 0), '' ]); + } } }