File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
lib/internal/Magento/Framework/Session Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,6 @@ class SaveHandler implements SaveHandlerInterface
35
35
*/
36
36
private $ defaultHandler ;
37
37
38
- /**
39
- * @var string
40
- */
41
- private $ saveHandler ;
42
-
43
38
/**
44
39
* @param SaveHandlerFactory $saveHandlerFactory
45
40
* @param ConfigInterface $sessionConfig
@@ -53,7 +48,6 @@ public function __construct(
53
48
$ this ->saveHandlerFactory = $ saveHandlerFactory ;
54
49
$ this ->sessionConfig = $ sessionConfig ;
55
50
$ this ->defaultHandler = $ default ;
56
- $ this ->saveHandler = $ this ->sessionConfig ->getOption ('session.save_handler ' ) ?: $ this ->defaultHandler ;
57
51
}
58
52
59
53
/**
@@ -138,7 +132,8 @@ private function callSafely(string $method, ...$arguments)
138
132
{
139
133
try {
140
134
if ($ this ->saveHandlerAdapter === null ) {
141
- $ this ->saveHandlerAdapter = $ this ->saveHandlerFactory ->create ($ this ->saveHandler );
135
+ $ saveMethod = $ this ->sessionConfig ->getOption ('session.save_handler ' ) ?: $ this ->defaultHandler ;
136
+ $ this ->saveHandlerAdapter = $ this ->saveHandlerFactory ->create ($ saveMethod );
142
137
}
143
138
return $ this ->saveHandlerAdapter ->{$ method }(...$ arguments );
144
139
} catch (SessionException $ exception ) {
You can’t perform that action at this time.
0 commit comments