File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Component/HttpKernel Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ protected function initializeContainer()
587587 $ errorLevel = error_reporting (\E_ALL ^ \E_WARNING );
588588 $ fresh = $ oldContainer = false ;
589589 try {
590- if (\is_object ($ this ->container = include $ cache ->getPath ())) {
590+ if (file_exists ( $ cache -> getPath ()) && \is_object ($ this ->container = include $ cache ->getPath ())) {
591591 $ this ->container ->set ('kernel ' , $ this );
592592 $ oldContainer = $ this ->container ;
593593 $ fresh = true ;
@@ -650,7 +650,7 @@ protected function initializeContainer()
650650 }
651651 }
652652
653- if (null === $ oldContainer ) {
653+ if (null === $ oldContainer && file_exists ( $ cache -> getPath ()) ) {
654654 $ errorLevel = error_reporting (\E_ALL ^ \E_WARNING );
655655 try {
656656 $ oldContainer = include $ cache ->getPath ();
You can’t perform that action at this time.
0 commit comments