src/DatabaseManager.php
public function addDriver(string $name, DriverInterface $driver): DatabaseManager
    {
        if (isset($this->drivers[$name])) {
            throw new DBALException("Connection '{$name}' already exists");
        }

        $this->drivers[$name] = $driver;

        return $this;
    }
public function addDriver(string $name, DriverInterface $driver): DatabaseManager
    {
        if (isset($this->drivers[$name])) {
            throw new DBALException("Connection '{$name}' already exists");
        }

        $this->drivers[$name] = $driver;

        return $this;
    }
public function addDriver ( string $ name , DriverInterface $ driver ) : DatabaseManager { if ( isset ( $ this -> drivers [ $ name ] ) ) { throw new DBALException ( "Connection '{$name}' already exists" ) ; } $ this -> drivers [ $ name ] = $ driver ; return $ this ; }
Manually set connection instance.

@param string          $name
@param DriverInterface $driver
@return self

@throws DBALException
Manually set connection instance .