src/Exchange/ExchangeFactory.php
public function createNamed($name, Channel $channel)
    {
        $exchange = new Exchange($name, $channel, $this->contextRegistry->getExchangeContext($name));
        $this->exchangeRegistry->addExchange($exchange);

        return $exchange;
    }
public function createNamed($name, Channel $channel)
    {
        $exchange = new Exchange($name, $channel, $this->contextRegistry->getExchangeContext($name));
        $this->exchangeRegistry->addExchange($exchange);

        return $exchange;
    }
@param string  $name
@param Channel $channel

@return Exchange