protected function configure()
 {
     parent::configure();
     $this->setName('rabbitmq:anon-consumer');
     $this->getDefinition()->getOption('messages')->setDefault(1);
     $this->getDefinition()->getOption('route')->setDefault('#');
 }
示例#2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('rabbitmq:consumer');
     $this->setDescription('Starts a configured consumer');
 }
 protected function configure()
 {
     parent::configure();
     $this->setDescription('Executes a consumer that uses multiple queues');
     $this->setName('rabbitmq:multiple-consumer');
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('rabbitmq:consumer');
 }