src/DatabaseManager.php
public function addDatabase(Database $database)
    {
        if (isset($this->databases[$database->getName()])) {
            throw new DBALException("Database '{$database->getName()}' already exists");
        }

        $this->databases[$database->getName()] = $database;
    }
public function addDatabase(Database $database)
    {
        if (isset($this->databases[$database->getName()])) {
            throw new DBALException("Database '{$database->getName()}' already exists");
        }

        $this->databases[$database->getName()] = $database;
    }
public function addDatabase ( Database $ database ) { if ( isset ( $ this -> databases [ $ database -> getName ( ) ] ) ) { throw new DBALException ( "Database '{$database->getName()}' already exists" ) ; } $ this -> databases [ $ database -> getName ( ) ] = $ database ; }
Add new database.

@param Database $database

@throws DBALException
Add new database .