Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
30 | 2 | protected function execute(InputInterface $input, OutputInterface $output) |
|
31 | { |
||
32 | 2 | $queue = $input->getArgument('queue'); |
|
33 | $consume = $this |
||
34 | 2 | ->getContainer() |
|
35 | 2 | ->get('innmind.amqp.consumers') |
|
36 | 2 | ->get($queue); |
|
37 | |||
38 | $this |
||
39 | 2 | ->getContainer() |
|
40 | 2 | ->get('innmind.amqp.client') |
|
41 | 2 | ->channel() |
|
42 | 2 | ->basic() |
|
43 | 2 | ->get(new Get($queue))($consume); |
|
44 | 2 | } |
|
45 | } |
||
46 |