for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OldSound\RabbitMqBundle\RabbitMq;
use PhpAmqpLib\Connection\AbstractConnection;
use Symfony\Component\Console\Exception\InvalidArgumentException;
class GroupConsumer extends Consumer
{
/** @var iterable|Consumer[] */
protected $consumers = array();
public function addConsumers(iterable $consumers)
foreach ($consumers as $consumer) {
$consumer->setChannel($this->ch);
$consumer->setConsumerTag(sprintf("PHPPROCESS_%s_%s_%s", gethostname(), getmypid(), count($this->consumers)));
$this->consumers[] = $consumer;
}
public function setupConsumer()
foreach ($this->consumers as $consumer) {
$consumer->setupConsumer();
public function stopConsuming()
$consumer->stopConsuming();
public function purge()
$consumer->purge();
public function delete()
$consumer->delete();
public function disableAutoSetupFabric()
$consumer->disableAutoSetupFabric();