/** * {@inheritDoc} */ public function addQueue(QueueInterface $queue) { if (isset($this->queues[$queue->getName()])) { throw new QueueException('Queue already exists'); } $this->queues[$queue->getName()] = $queue; }