Skip to content

Commit

Permalink
Merge pull request #186 from vend/bugfix-persistent-tcp-path
Browse files Browse the repository at this point in the history
Pass the path parameter to deduplicate persistent connections
  • Loading branch information
snc authored Apr 12, 2017
2 parents 03fa685 + 00893dd commit 92d5032
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DependencyInjection/SncRedisExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ protected function loadPredisClient(array $client, ContainerBuilder $container)
$connection['scheme'] = 'tcp';
$connection['host'] = $dsn->getHost();
$connection['port'] = $dsn->getPort();
if (null !== $dsn->getDatabase()) {
$connection['path'] = $dsn->getDatabase();
}
}
if (null !== $dsn->getDatabase()) {
$connection['database'] = $dsn->getDatabase();
Expand Down

0 comments on commit 92d5032

Please sign in to comment.