lib/Doctrine/DBAL/DriverManager.php
private static function parseDatabaseUrlPath(array $url, array $params) : array
    {
        if (! isset($url['path'])) {
            return $params;
        }

        $url['path'] = self::normalizeDatabaseUrlPath($url['path']);

        // If we do not have a known DBAL driver, we do not know any connection URL path semantics to evaluate
        // and therefore treat the path as regular DBAL connection URL path.
        if (! isset($params['driver'])) {
            return self::parseRegularDatabaseUrlPath($url, $params);
        }

        if (strpos($params['driver'], 'sqlite') !== false) {
            return self::parseSqliteDatabaseUrlPath($url, $params);
        }

        return self::parseRegularDatabaseUrlPath($url, $params);
    }
private static function parseDatabaseUrlPath(array $url, array $params) : array
    {
        if (! isset($url['path'])) {
            return $params;
        }

        $url['path'] = self::normalizeDatabaseUrlPath($url['path']);

        // If we do not have a known DBAL driver, we do not know any connection URL path semantics to evaluate
        // and therefore treat the path as regular DBAL connection URL path.
        if (! isset($params['driver'])) {
            return self::parseRegularDatabaseUrlPath($url, $params);
        }

        if (strpos($params['driver'], 'sqlite') !== false) {
            return self::parseSqliteDatabaseUrlPath($url, $params);
        }

        return self::parseRegularDatabaseUrlPath($url, $params);
    }
private static function parseDatabaseUrlPath ( array $ url , array $ params ) : array { if ( ! isset ( $ url [ 'path' ] ) ) { return $ params ; } $ url [ 'path' ] = self :: normalizeDatabaseUrlPath ( $ url [ 'path' ] ) ; // If we do not have a known DBAL driver, we do not know any connection URL path semantics to evaluate // and therefore treat the path as regular DBAL connection URL path. if ( ! isset ( $ params [ 'driver' ] ) ) { return self :: parseRegularDatabaseUrlPath ( $ url , $ params ) ; } if ( strpos ( $ params [ 'driver' ] , 'sqlite' ) !== false ) { return self :: parseSqliteDatabaseUrlPath ( $ url , $ params ) ; } return self :: parseRegularDatabaseUrlPath ( $ url , $ params ) ; }
Parses the given connection URL and resolves the given connection parameters.

Assumes that the connection URL scheme is already parsed and resolved into the given connection parameters
via {@link parseDatabaseUrlScheme}.

@see parseDatabaseUrlScheme

@param mixed[] $url    The URL parts to evaluate.
@param mixed[] $params The connection parameters to resolve.

@return mixed[] The resolved connection parameters.
Parses the given connection URL and resolves the given connection parameters .