Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (17 sloc) 545 Bytes
<?php
namespace OldSound\RabbitMqBundle\Command;
class AnonConsumerCommand extends BaseConsumerCommand
{
protected function configure()
{
parent::configure();
$this->setName('rabbitmq:anon-consumer');
$this->setDescription('Executes an anonymous consumer');
$this->getDefinition()->getOption('messages')->setDefault(1);
$this->getDefinition()->getOption('route')->setDefault('#');
}
protected function getConsumerService()
{
return 'old_sound_rabbit_mq.%s_anon';
}
}
Something went wrong with that request. Please try again.