protected function parseUrl($url)
    {
        $url = preg_replace('#^(sqlite3?):///#', '$1://null/', $url);

        $parsedUrl = parse_url($url);

        if ($parsedUrl === false) {
            throw new InvalidArgumentException('The database configuration URL is malformed.');
        }

        return $this->parseStringsToNativeTypes(
            array_map('rawurldecode', $parsedUrl)
        );
    }
protected function parseUrl($url)
    {
        $url = preg_replace('#^(sqlite3?):///#', '$1://null/', $url);

        $parsedUrl = parse_url($url);

        if ($parsedUrl === false) {
            throw new InvalidArgumentException('The database configuration URL is malformed.');
        }

        return $this->parseStringsToNativeTypes(
            array_map('rawurldecode', $parsedUrl)
        );
    }
protected function parseUrl ( $ url ) { $ url = preg_replace ( '#^(sqlite3?):///#' , '$1://null/' , $ url ) ; $ parsedUrl = parse_url ( $ url ) ; if ( $ parsedUrl === false ) { throw new InvalidArgumentException ( 'The database configuration URL is malformed.' ) ; } return $ this -> parseStringsToNativeTypes ( array_map ( 'rawurldecode' , $ parsedUrl ) ) ; }
Parse the string URL to an array of components.

@param  string  $url
@return array
Parse the string URL to an array of components .