| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 54.55% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | class DynamicConsumerCommand extends BaseConsumerCommand |
||
| 16 | { |
||
| 17 | 1 | protected function configure() |
|
| 18 | { |
||
| 19 | 1 | parent::configure(); |
|
| 20 | |||
| 21 | $this |
||
| 22 | 1 | ->setName('rabbitmq:dynamic-consumer') |
|
| 23 | 1 | ->setDescription('Executes context-aware consumer') |
|
| 24 | 1 | ->addArgument('context', InputArgument::REQUIRED, 'Context the consumer runs in') |
|
| 25 | ; |
||
| 26 | 1 | } |
|
| 27 | |||
| 28 | protected function getConsumerService() |
||
| 29 | { |
||
| 30 | return 'old_sound_rabbit_mq.%s_dynamic'; |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function initConsumer($input) |
||
| 37 | } |
||
| 38 | } |
||
| 39 |