Skip to content

Commit

Permalink
Remove Hash class dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Oct 12, 2014
1 parent f41f63c commit 12909be
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Datasource/ConnectionManager.php
Expand Up @@ -113,7 +113,14 @@ public static function parseDsn($config) {
}

$parsed = parse_url($dsn);
parse_str(Hash::get($parsed, 'query', ''), $queryArgs);
$query = '';

if (isset($parsed['query'])) {
$query = $parsed['query'];
}

parse_str($query, $queryArgs);


if ($driver !== null) {
$queryArgs['driver'] = $driver;
Expand Down

0 comments on commit 12909be

Please sign in to comment.