@@ -93,10 +93,10 @@ discard block |
||
93 | 93 | |
94 | 94 | try { |
95 | 95 | if ( ! $this->redis->connect( |
96 | - $this->config[ 'host' ], |
|
97 | - ($this->config[ 'host' ][ 0 ] === '/' ? 0 |
|
98 | - : $this->config[ 'port' ]), |
|
99 | - $this->config[ 'timeout' ] |
|
96 | + $this->config['host'], |
|
97 | + ($this->config['host'][0] === '/' ? 0 |
|
98 | + : $this->config['port']), |
|
99 | + $this->config['timeout'] |
|
100 | 100 | ) |
101 | 101 | ) { |
102 | 102 | if ($this->logger instanceof LoggerInterface) { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | return false; |
107 | 107 | } |
108 | 108 | |
109 | - if (isset($this->config[ 'password' ]) AND ! $this->redis->auth($this->config[ 'password' ])) { |
|
109 | + if (isset($this->config['password']) AND ! $this->redis->auth($this->config['password'])) { |
|
110 | 110 | if ($this->logger instanceof LoggerInterface) { |
111 | 111 | $this->logger->error('SESSION_E_REDIS_AUTHENTICATION_FAILED', ['Redis']); |
112 | 112 | } |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | $this->redis->setTimeout($this->lockKey, 300); |
351 | 351 | |
352 | 352 | if ($this->fingerprint !== ($fingerprint = md5($session_data))) { |
353 | - if ($this->redis->set($this->prefixKey . $session_id, $session_data, $this->config[ 'lifetime' ])) { |
|
353 | + if ($this->redis->set($this->prefixKey . $session_id, $session_data, $this->config['lifetime'])) { |
|
354 | 354 | $this->fingerprint = $fingerprint; |
355 | 355 | |
356 | 356 | return true; |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | return false; |
360 | 360 | } |
361 | 361 | |
362 | - return $this->redis->setTimeout($this->prefixKey . $session_id, $this->config[ 'lifetime' ]); |
|
362 | + return $this->redis->setTimeout($this->prefixKey . $session_id, $this->config['lifetime']); |
|
363 | 363 | } |
364 | 364 | |
365 | 365 | return false; |