@@ -38,7 +38,7 @@ protected function createNullDriver()
38
38
protected function createArrayDriver ()
39
39
{
40
40
return $ this ->buildSession (new ArraySessionHandler (
41
- $ this ->config ->get ('session.lifetime ' )
41
+ $ this ->container [ ' config ' ] ->get ('session.lifetime ' )
42
42
));
43
43
}
44
44
@@ -51,8 +51,8 @@ protected function createCookieDriver()
51
51
{
52
52
return $ this ->buildSession (new CookieSessionHandler (
53
53
$ this ->container ->make ('cookie ' ),
54
- $ this ->config ->get ('session.lifetime ' ),
55
- $ this ->config ->get ('session.expire_on_close ' )
54
+ $ this ->container [ ' config ' ] ->get ('session.lifetime ' ),
55
+ $ this ->container [ ' config ' ] ->get ('session.expire_on_close ' )
56
56
));
57
57
}
58
58
@@ -73,10 +73,10 @@ protected function createFileDriver()
73
73
*/
74
74
protected function createNativeDriver ()
75
75
{
76
- $ lifetime = $ this ->config ->get ('session.lifetime ' );
76
+ $ lifetime = $ this ->container [ ' config ' ] ->get ('session.lifetime ' );
77
77
78
78
return $ this ->buildSession (new FileSessionHandler (
79
- $ this ->container ->make ('files ' ), $ this ->config ->get ('session.files ' ), $ lifetime
79
+ $ this ->container ->make ('files ' ), $ this ->container [ ' config ' ] ->get ('session.files ' ), $ lifetime
80
80
));
81
81
}
82
82
@@ -87,9 +87,9 @@ protected function createNativeDriver()
87
87
*/
88
88
protected function createDatabaseDriver ()
89
89
{
90
- $ table = $ this ->config ->get ('session.table ' );
90
+ $ table = $ this ->container [ ' config ' ] ->get ('session.table ' );
91
91
92
- $ lifetime = $ this ->config ->get ('session.lifetime ' );
92
+ $ lifetime = $ this ->container [ ' config ' ] ->get ('session.lifetime ' );
93
93
94
94
return $ this ->buildSession (new DatabaseSessionHandler (
95
95
$ this ->getDatabaseConnection (), $ table , $ lifetime , $ this ->container
@@ -103,7 +103,7 @@ protected function createDatabaseDriver()
103
103
*/
104
104
protected function getDatabaseConnection ()
105
105
{
106
- $ connection = $ this ->config ->get ('session.connection ' );
106
+ $ connection = $ this ->container [ ' config ' ] ->get ('session.connection ' );
107
107
108
108
return $ this ->container ->make ('db ' )->connection ($ connection );
109
109
}
@@ -138,7 +138,7 @@ protected function createRedisDriver()
138
138
$ handler = $ this ->createCacheHandler ('redis ' );
139
139
140
140
$ handler ->getCache ()->getStore ()->setConnection (
141
- $ this ->config ->get ('session.connection ' )
141
+ $ this ->container [ ' config ' ] ->get ('session.connection ' )
142
142
);
143
143
144
144
return $ this ->buildSession ($ handler );
@@ -173,11 +173,11 @@ protected function createCacheBased($driver)
173
173
*/
174
174
protected function createCacheHandler ($ driver )
175
175
{
176
- $ store = $ this ->config ->get ('session.store ' ) ?: $ driver ;
176
+ $ store = $ this ->container [ ' config ' ] ->get ('session.store ' ) ?: $ driver ;
177
177
178
178
return new CacheBasedSessionHandler (
179
179
clone $ this ->container ->make ('cache ' )->store ($ store ),
180
- $ this ->config ->get ('session.lifetime ' )
180
+ $ this ->container [ ' config ' ] ->get ('session.lifetime ' )
181
181
);
182
182
}
183
183
@@ -189,13 +189,13 @@ protected function createCacheHandler($driver)
189
189
*/
190
190
protected function buildSession ($ handler )
191
191
{
192
- return $ this ->config ->get ('session.encrypt ' )
192
+ return $ this ->container [ ' config ' ] ->get ('session.encrypt ' )
193
193
? $ this ->buildEncryptedSession ($ handler )
194
194
: new Store (
195
- $ this ->config ->get ('session.cookie ' ),
195
+ $ this ->container [ ' config ' ] ->get ('session.cookie ' ),
196
196
$ handler ,
197
197
$ id = null ,
198
- $ this ->config ->get ('session.serialization ' , 'php ' )
198
+ $ this ->container [ ' config ' ] ->get ('session.serialization ' , 'php ' )
199
199
);
200
200
}
201
201
@@ -208,11 +208,11 @@ protected function buildSession($handler)
208
208
protected function buildEncryptedSession ($ handler )
209
209
{
210
210
return new EncryptedStore (
211
- $ this ->config ->get ('session.cookie ' ),
211
+ $ this ->container [ ' config ' ] ->get ('session.cookie ' ),
212
212
$ handler ,
213
213
$ this ->container ['encrypter ' ],
214
214
$ id = null ,
215
- $ this ->config ->get ('session.serialization ' , 'php ' ),
215
+ $ this ->container [ ' config ' ] ->get ('session.serialization ' , 'php ' ),
216
216
);
217
217
}
218
218
@@ -223,7 +223,7 @@ protected function buildEncryptedSession($handler)
223
223
*/
224
224
public function shouldBlock ()
225
225
{
226
- return $ this ->config ->get ('session.block ' , false );
226
+ return $ this ->container [ ' config ' ] ->get ('session.block ' , false );
227
227
}
228
228
229
229
/**
@@ -233,7 +233,7 @@ public function shouldBlock()
233
233
*/
234
234
public function blockDriver ()
235
235
{
236
- return $ this ->config ->get ('session.block_store ' );
236
+ return $ this ->container [ ' config ' ] ->get ('session.block_store ' );
237
237
}
238
238
239
239
/**
@@ -243,7 +243,7 @@ public function blockDriver()
243
243
*/
244
244
public function getSessionConfig ()
245
245
{
246
- return $ this ->config ->get ('session ' );
246
+ return $ this ->container [ ' config ' ] ->get ('session ' );
247
247
}
248
248
249
249
/**
@@ -253,7 +253,7 @@ public function getSessionConfig()
253
253
*/
254
254
public function getDefaultDriver ()
255
255
{
256
- return $ this ->config ->get ('session.driver ' );
256
+ return $ this ->container [ ' config ' ] ->get ('session.driver ' );
257
257
}
258
258
259
259
/**
@@ -264,6 +264,6 @@ public function getDefaultDriver()
264
264
*/
265
265
public function setDefaultDriver ($ name )
266
266
{
267
- $ this ->config ->set ('session.driver ' , $ name );
267
+ $ this ->container [ ' config ' ] ->set ('session.driver ' , $ name );
268
268
}
269
269
}
0 commit comments