File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ public function __construct($driver, array $config)
47
47
* @param string|null $name
48
48
* @return \Illuminate\Redis\Connections\Connection
49
49
*/
50
- public function connection ($ name = null , $ forceNew = false )
50
+ public function connection ($ name = null )
51
51
{
52
52
$ name = $ name ?: 'default ' ;
53
53
54
- if (isset ($ this ->connections [$ name ]) && $ forceNew == false ) {
54
+ if (isset ($ this ->connections [$ name ])) {
55
55
return $ this ->connections [$ name ];
56
56
}
57
57
@@ -61,13 +61,15 @@ public function connection($name = null, $forceNew = false)
61
61
/**
62
62
* Resolve the given connection by name.
63
63
*
64
- * @param string $name
64
+ * @param string|null $name
65
65
* @return \Illuminate\Redis\Connections\Connection
66
66
*
67
67
* @throws \InvalidArgumentException
68
68
*/
69
- protected function resolve ($ name )
69
+ public function resolve ($ name = null )
70
70
{
71
+ $ name = $ name ?: 'default ' ;
72
+
71
73
$ options = Arr::get ($ this ->config , 'options ' , []);
72
74
73
75
if (isset ($ this ->config [$ name ])) {
You can’t perform that action at this time.
0 commit comments