src/DBAL/ConnectionWrapper.php
protected function hasNewConnectionParams(array $params)
    {
        if (!$this->getSession()->has(self::SESSION_CONNECTION_KEY)) {
            return true;
        }

        $currentParams = $this->getSession()->get(self::SESSION_CONNECTION_KEY);

        foreach ($this->getParamsKey() as $key) {
            if (isset($currentParams[$key]) && $params[$key] !== $currentParams[$key]) {
                return true;
            }
        }

        return false;
    }
protected function hasNewConnectionParams(array $params)
    {
        if (!$this->getSession()->has(self::SESSION_CONNECTION_KEY)) {
            return true;
        }

        $currentParams = $this->getSession()->get(self::SESSION_CONNECTION_KEY);

        foreach ($this->getParamsKey() as $key) {
            if (isset($currentParams[$key]) && $params[$key] !== $currentParams[$key]) {
                return true;
            }
        }

        return false;
    }
protected function hasNewConnectionParams ( array $ params ) { if ( ! $ this -> getSession ( ) -> has ( self :: SESSION_CONNECTION_KEY ) ) { return true ; } $ currentParams = $ this -> getSession ( ) -> get ( self :: SESSION_CONNECTION_KEY ) ; foreach ( $ this -> getParamsKey ( ) as $ key ) { if ( isset ( $ currentParams [ $ key ] ) && $ params [ $ key ] !== $ currentParams [ $ key ] ) { return true ; } } return false ; }
Checks if has new connection parameters

@param  array $params

@return bool
Checks if has new connection parameters