src/DB.php
public static function connectDbNew($dbParams) {
        self::validateDbParameters($dbParams);
        $dbParamsSan = self::sanitizeDbParameters($dbParams);
        $config = new Configuration();
        return DriverManager::getConnection($dbParamsSan, $config);        
    }
public static function connectDbNew($dbParams) {
        self::validateDbParameters($dbParams);
        $dbParamsSan = self::sanitizeDbParameters($dbParams);
        $config = new Configuration();
        return DriverManager::getConnection($dbParamsSan, $config);        
    }
public static function connectDbNew ( $ dbParams ) { self :: validateDbParameters ( $ dbParams ) ; $ dbParamsSan = self :: sanitizeDbParameters ( $ dbParams ) ; $ config = new Configuration ( ) ; return DriverManager :: getConnection ( $ dbParamsSan , $ config ) ; }
For new connections that are building transactions

@param  array $dbParams  - Database connection parameters

@return  Doctrine\DBAL
For new connections that are building transactions