File tree 1 file changed +4
-8
lines changed
src/Symfony/Component/HttpKernel
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -484,10 +484,10 @@ protected function initializeContainer()
484
484
$ cacheDir = $ this ->warmupDir ?: $ this ->getCacheDir ();
485
485
$ cache = new ConfigCache ($ cacheDir .'/ ' .$ class .'.php ' , $ this ->debug );
486
486
$ oldContainer = null ;
487
- if ($ fresh = $ cache ->isFresh ()) {
487
+ if ($ cache ->isFresh ()) {
488
488
// Silence E_WARNING to ignore "include" failures - don't use "@" to prevent silencing fatal errors
489
489
$ errorLevel = error_reporting (\E_ALL ^ \E_WARNING );
490
- $ fresh = $ oldContainer = false ;
490
+ $ oldContainer = false ;
491
491
try {
492
492
if (!$ asFiles ) {
493
493
require_once $ cache ->getPath ();
@@ -498,19 +498,15 @@ protected function initializeContainer()
498
498
}
499
499
if (file_exists ($ cache ->getPath ()) && \is_object ($ this ->container = include $ cache ->getPath ())) {
500
500
$ this ->container ->set ('kernel ' , $ this );
501
- $ oldContainer = $ this -> container ;
502
- $ fresh = true ;
501
+
502
+ return ;
503
503
}
504
504
} catch (\Throwable $ e ) {
505
505
} finally {
506
506
error_reporting ($ errorLevel );
507
507
}
508
508
}
509
509
510
- if ($ fresh ) {
511
- return ;
512
- }
513
-
514
510
if ($ this ->debug ) {
515
511
$ collectedLogs = [];
516
512
$ previousHandler = \defined ('PHPUNIT_COMPOSER_INSTALL ' );
You can’t perform that action at this time.
0 commit comments