Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function createQueue(ChannelInterface $channel, $name = null, $flags = null, array $args = [])
 {
     $delegate = new \AMQPQueue($channel->getDelegate());
     $delegate->setFlags(Queue::convertToDelegateFlags($flags));
     $delegate->setArguments($args);
     if (null !== $name) {
         $delegate->setName($name);
     }
     return new Queue($delegate, $channel);
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function getConnection()
 {
     return $this->channel->getConnection();
 }
Exemplo n.º 3
0
 /**
  * @inheritdoc
  */
 protected function getDelegate(ChannelInterface $channel)
 {
     return new \AMQPExchange($channel->getDelegate());
 }