change dsn so the password is passed correctly

This commit is contained in:
Holger Reinhardt 2016-08-03 15:33:38 +02:00
parent fed81c55be
commit 5b27089dd6

View File

@ -57,7 +57,7 @@ class ResqueServiceProvider extends ServiceProvider
$server = implode(':', [$host, $port]);
if ($password) {
$server = implode('@', [$password, $server]);
$server = implode('@', [implode(':', ['', $password]), $server]);
}
$dsn = sprintf('redis://%s/%s', $server, $database);