src/Connection/ConnectionFactory.php
public function createNamed($name)
    {
        if (!isset($this->configs[$name])) {
            throw new HectorException(sprintf('Unable to load config for connection %s', $name));
        }

        $connection = new Connection(new \AMQPConnection($this->configs[$name]), $name);
        $this->registry->addConnection($connection);

        return $connection;
    }
public function createNamed($name)
    {
        if (!isset($this->configs[$name])) {
            throw new HectorException(sprintf('Unable to load config for connection %s', $name));
        }

        $connection = new Connection(new \AMQPConnection($this->configs[$name]), $name);
        $this->registry->addConnection($connection);

        return $connection;
    }
@param $name

@throws HectorException

@return Connection