Pheasant\Database\ConnectionManager::addConnection PHP Method

addConnection() public method

Adds a named connection, with a string dsn
public addConnection ( $name, $dsn )
    public function addConnection($name, $dsn)
    {
        if (isset($this->_connections[$name])) {
            throw new \Pheasant\Exception("Connection {$name} already exists");
        }
        $this->_connections[$name] = $dsn;
        return $this;
    }