mirror of
https://github.com/idanoo/laravel-resque.git
synced 2024-11-24 09:25:19 +00:00
change dsn so the password is passed correctly
This commit is contained in:
parent
fed81c55be
commit
5b27089dd6
@ -57,7 +57,7 @@ class ResqueServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
$server = implode(':', [$host, $port]);
|
$server = implode(':', [$host, $port]);
|
||||||
if ($password) {
|
if ($password) {
|
||||||
$server = implode('@', [$password, $server]);
|
$server = implode('@', [implode(':', ['', $password]), $server]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dsn = sprintf('redis://%s/%s', $server, $database);
|
$dsn = sprintf('redis://%s/%s', $server, $database);
|
||||||
|
Loading…
Reference in New Issue
Block a user