@@ -88,7 +88,7 @@ protected function runCommand(string $name, array $params = [], bool $reuseKerne
88
88
static ::ensureKernelShutdown ();
89
89
}
90
90
91
- $ kernel = static ::bootKernel (['environment ' => self ::$ env ]);
91
+ $ kernel = static ::bootKernel (['environment ' => static ::$ env ]);
92
92
$ kernel ->boot ();
93
93
} else {
94
94
$ kernel = $ this ->getContainer ()->get ('kernel ' );
@@ -208,10 +208,10 @@ public function isDecorated(bool $decorated): void
208
208
*/
209
209
private function getDependencyInjectionContainer (): ContainerInterface
210
210
{
211
- $ cacheKey = self ::$ env ;
211
+ $ cacheKey = static ::$ env ;
212
212
if (empty ($ this ->containers [$ cacheKey ])) {
213
213
$ kernel = static ::createKernel ([
214
- 'environment ' => self ::$ env ,
214
+ 'environment ' => static ::$ env ,
215
215
]);
216
216
$ kernel ->boot ();
217
217
@@ -229,7 +229,7 @@ private function getDependencyInjectionContainer(): ContainerInterface
229
229
protected static function createKernel (array $ options = []): KernelInterface
230
230
{
231
231
if (!isset ($ options ['environment ' ])) {
232
- $ options ['environment ' ] = self ::$ env ;
232
+ $ options ['environment ' ] = static ::$ env ;
233
233
}
234
234
235
235
return parent ::createKernel ($ options );
@@ -253,9 +253,9 @@ public function __set($name, $value)
253
253
throw new \Exception (sprintf ('There is no property with name "%s" ' , $ name ));
254
254
}
255
255
256
- @trigger_error ('Setting "environment" property is deprecated, please use self ::$env. ' , \E_USER_DEPRECATED );
256
+ @trigger_error ('Setting "environment" property is deprecated, please use static ::$env. ' , \E_USER_DEPRECATED );
257
257
258
- self ::$ env = $ value ;
258
+ static ::$ env = $ value ;
259
259
}
260
260
261
261
public function __isset ($ name )
@@ -264,7 +264,7 @@ public function __isset($name)
264
264
throw new \Exception (sprintf ('There is no property with name "%s" ' , $ name ));
265
265
}
266
266
267
- @trigger_error ('Checking "environment" property is deprecated, please use self ::$env. ' , \E_USER_DEPRECATED );
267
+ @trigger_error ('Checking "environment" property is deprecated, please use static ::$env. ' , \E_USER_DEPRECATED );
268
268
269
269
return true ;
270
270
}
@@ -275,9 +275,9 @@ public function __get($name)
275
275
throw new \Exception (sprintf ('There is no property with name "%s" ' , $ name ));
276
276
}
277
277
278
- @trigger_error ('Getting "environment" property is deprecated, please use self ::$env. ' , \E_USER_DEPRECATED );
278
+ @trigger_error ('Getting "environment" property is deprecated, please use static ::$env. ' , \E_USER_DEPRECATED );
279
279
280
- return self ::$ env ;
280
+ return static ::$ env ;
281
281
}
282
282
283
283
/**
@@ -496,7 +496,7 @@ protected function createClientWithParams(array $params, ?string $username = nul
496
496
static ::ensureKernelShutdown ();
497
497
}
498
498
499
- $ client = static ::createClient (['environment ' => self ::$ env ], $ params );
499
+ $ client = static ::createClient (['environment ' => static ::$ env ], $ params );
500
500
501
501
if ($ this ->firewallLogins ) {
502
502
// has to be set otherwise "hasPreviousSession" in Request returns false.
0 commit comments