Skip to content

Commit 1cf94dc

Browse files
author
Bogdan Rancichi
committed
created separate command for batch consumers
1 parent 16d2ec8 commit 1cf94dc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Command/BatchConsumerCommand.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace OldSound\RabbitMqBundle\Command;
4+
5+
class BatchConsumerCommand extends BaseConsumerCommand
6+
{
7+
protected function configure()
8+
{
9+
parent::configure();
10+
$this
11+
->setName('rabbitmq:batch-consumer')
12+
->setDescription('Executes a batch consumer')
13+
;
14+
}
15+
16+
protected function getConsumerService()
17+
{
18+
return 'old_sound_rabbit_mq.%s_batch';
19+
}
20+
}

0 commit comments

Comments
 (0)