File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,11 @@ protected function driverConnect()
142142 if (count ($ servers ) < 1 ) {
143143 $ servers = [
144144 [
145- 'host ' => '127.0.0.1 ' ,
146- 'path ' => false ,
147- 'port ' => 11211 ,
148- 'sasl_user ' => false ,
149- 'sasl_password ' => false ,
145+ 'host ' => ! empty ( $ this -> config [ ' host ' ]) ? $ this -> config [ ' host ' ] : '127.0.0.1 ' ,
146+ 'path ' => ! empty ( $ this -> config [ ' path ' ]) ? $ this -> config [ ' path ' ] : false ,
147+ 'port ' => ! empty ( $ this -> config [ ' port ' ]) ? $ this -> config [ ' port ' ] : 11211 ,
148+ 'sasl_user ' => ! empty ( $ this -> config [ ' sasl_user ' ]) ? $ this -> config [ ' sasl_user ' ] : false ,
149+ 'sasl_password ' =>! empty ( $ this -> config [ ' sasl_password ' ]) ? $ this -> config [ ' sasl_password ' ]: false ,
150150 ],
151151 ];
152152 }
Original file line number Diff line number Diff line change @@ -136,11 +136,11 @@ protected function driverConnect()
136136 if (count ($ servers ) < 1 ) {
137137 $ servers = [
138138 [
139- 'host ' => '127.0.0.1 ' ,
140- 'path ' => false ,
141- 'port ' => 11211 ,
142- 'sasl_user ' => false ,
143- 'sasl_password ' => false ,
139+ 'host ' => ! empty ( $ this -> config [ ' host ' ]) ? $ this -> config [ ' host ' ] : '127.0.0.1 ' ,
140+ 'path ' => ! empty ( $ this -> config [ ' path ' ]) ? $ this -> config [ ' path ' ] : false ,
141+ 'port ' => ! empty ( $ this -> config [ ' port ' ]) ? $ this -> config [ ' port ' ] : 11211 ,
142+ 'sasl_user ' => ! empty ( $ this -> config [ ' sasl_user ' ]) ? $ this -> config [ ' sasl_user ' ] : false ,
143+ 'sasl_password ' =>! empty ( $ this -> config [ ' sasl_password ' ]) ? $ this -> config [ ' sasl_password ' ]: false ,
144144 ],
145145 ];
146146 }
You can’t perform that action at this time.
0 commit comments