concrete/src/Database/DatabaseManager.php
public function reconnect($name = null)
    {
        $this->disconnect($name = $name ?: $this->getDefaultConnection());

        if (!isset($this->connections[$name])) {
            return $this->connection($name);
        } else {
            return $this->refreshPdoConnections($name);
        }
    }
public function reconnect($name = null)
    {
        $this->disconnect($name = $name ?: $this->getDefaultConnection());

        if (!isset($this->connections[$name])) {
            return $this->connection($name);
        } else {
            return $this->refreshPdoConnections($name);
        }
    }
public function reconnect ( $ name = null ) { $ this -> disconnect ( $ name = $ name ? : $ this -> getDefaultConnection ( ) ) ; if ( ! isset ( $ this -> connections [ $ name ] ) ) { return $ this -> connection ( $ name ) ; } else { return $ this -> refreshPdoConnections ( $ name ) ; } }
Reconnect to the given database.

@param  string $name

@return \Concrete\Core\Database\Connection\Connection
Reconnect to the given database .