File tree 1 file changed +2
-2
lines changed
src/Symfony/Component/HttpKernel
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ protected function initializeContainer()
587
587
$ errorLevel = error_reporting (\E_ALL ^ \E_WARNING );
588
588
$ fresh = $ oldContainer = false ;
589
589
try {
590
- if (\is_object ($ this ->container = include $ cache ->getPath ())) {
590
+ if (file_exists ( $ cache -> getPath ()) && \is_object ($ this ->container = include $ cache ->getPath ())) {
591
591
$ this ->container ->set ('kernel ' , $ this );
592
592
$ oldContainer = $ this ->container ;
593
593
$ fresh = true ;
@@ -650,7 +650,7 @@ protected function initializeContainer()
650
650
}
651
651
}
652
652
653
- if (null === $ oldContainer ) {
653
+ if (null === $ oldContainer && file_exists ( $ cache -> getPath ()) ) {
654
654
$ errorLevel = error_reporting (\E_ALL ^ \E_WARNING );
655
655
try {
656
656
$ oldContainer = include $ cache ->getPath ();
You can’t perform that action at this time.
0 commit comments