DboSource::reconnect PHP Method

reconnect() public method

Reconnects to database server with optional new settings
public reconnect ( array $config = [] ) : boolean
$config array An array defining the new configuration settings
return boolean True on success, false on failure
    public function reconnect($config = array())
    {
        $this->disconnect();
        $this->setConfig($config);
        $this->_sources = null;
        return $this->connect();
    }
DboSource