@@ -120,6 +120,7 @@ public function __construct(
120
120
public function get (): array
121
121
{
122
122
$ envSessionConfiguration = (array )$ this ->stageConfig ->get (DeployInterface::VAR_SESSION_CONFIGURATION );
123
+ $ cacheBackend = 'redis ' ;
123
124
124
125
if (!$ this ->configMerger ->isEmpty ($ envSessionConfiguration )
125
126
&& !$ this ->configMerger ->isMergeRequired ($ envSessionConfiguration )
@@ -132,29 +133,25 @@ public function get(): array
132
133
ValkeySession::NAME_VALKEY_SESSION . ' will be used for session if it was not override by '
133
134
. DeployInterface::VAR_SESSION_CONFIGURATION
134
135
);
135
- $ cacheBackend = 'valkey ' ;
136
- $ cacheConfig = $ valkeyConfig ;
136
+ $ cacheConfig = $ valkeyConfig ;
137
137
} elseif ($ valkeyConfig = $ this ->valkey ->getConfiguration ()) {
138
138
$ this ->logger ->info (
139
139
VALKEY ::NAME_VALKEY . ' will be used for session if it was not override by '
140
140
. DeployInterface::VAR_SESSION_CONFIGURATION
141
141
);
142
- $ cacheBackend = 'valkey ' ;
143
- $ cacheConfig = $ valkeyConfig ;
142
+ $ cacheConfig = $ valkeyConfig ;
144
143
} elseif ($ redisConfig = $ this ->redisSession ->getConfiguration ()) {
145
144
$ this ->logger ->info (
146
145
RedisSession::NAME_REDIS_SESSION . ' will be used for session if it was not override by '
147
146
.DeployInterface::VAR_SESSION_CONFIGURATION
148
147
);
149
- $ cacheBackend = 'redis ' ;
150
- $ cacheConfig = $ redisConfig ;
148
+ $ cacheConfig = $ redisConfig ;
151
149
} elseif ($ redisConfig = $ this ->redis ->getConfiguration ()) {
152
150
$ this ->logger ->info (
153
151
Redis::NAME_REDIS . ' will be used for session if it was not override by '
154
152
. DeployInterface::VAR_SESSION_CONFIGURATION
155
153
);
156
- $ cacheBackend = 'redis ' ;
157
- $ cacheConfig = $ redisConfig ;
154
+ $ cacheConfig = $ redisConfig ;
158
155
} else {
159
156
return [];
160
157
}
0 commit comments