public function addConnection(ConnectionInterface $connection)
    {
        $this->emit('connect.before.each', array($connection));

        if ($this->getTransport($connection) === 'ssl') {
            $this->addSecureConnection($connection);
        } else {
            $this->addUnsecuredConnection($connection);
        }
    }