public function removeConnection($name)
    {
        if (!$this->hasConnection($name)) {
            throw new \InvalidArgumentException(sprintf('The connection "%s" does not exists.', $name));
        }

        unset($this->connections[$name]);
    }
public function removeConnection($name)
    {
        if (!$this->hasConnection($name)) {
            throw new \InvalidArgumentException(sprintf('The connection "%s" does not exists.', $name));
        }

        unset($this->connections[$name]);
    }
public function removeConnection ( $ name ) { if ( ! $ this -> hasConnection ( $ name ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The connection "%s" does not exists.' , $ name ) ) ; } unset ( $ this -> connections [ $ name ] ) ; }
Remove a connection.

@param string $name The connection name.

@throws \InvalidArgumentException If the connection does not exists.

@api
Remove a connection .