Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function create($name): Consumer |
||
22 | { |
||
23 | $consumerDef = $this->consumerDefs[$name]; |
||
24 | /** @var AbstractConnection $connection */ |
||
25 | $connection = $this->container->get(sprintf('old_sound_rabbit_mq.connection.%s', $consumerDef->name)); |
||
26 | $consumer = new Consumer($consumerDef->name); |
||
|
|||
27 | $consumer->setChannel($connection->channel()); |
||
28 | |||
29 | foreach([] as $d) { |
||
30 | $consumer->consumeQueue(); |
||
31 | } |
||
32 | |||
33 | return $consumer; |
||
34 | } |
||
35 | } |