File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
lib/internal/Magento/Framework/App/ObjectManager/ConfigLoader Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
use Magento \Framework \ObjectManager \ConfigLoaderInterface ;
10
10
11
+ /**
12
+ * Class Compiled returns configuration cache information
13
+ */
11
14
class Compiled implements ConfigLoaderInterface
12
15
{
13
16
/**
@@ -25,8 +28,12 @@ public function load($area)
25
28
if (isset ($ this ->configCache [$ area ])) {
26
29
return $ this ->configCache [$ area ];
27
30
}
28
- $ this ->configCache [$ area ] = \unserialize (\file_get_contents (self ::getFilePath ($ area )));
29
- return $ this ->configCache [$ area ];
31
+ $ filePath = self ::getFilePath ($ area );
32
+ if (\file_exists ($ filePath )) {
33
+ $ this ->configCache [$ area ] = \unserialize (\file_get_contents ($ filePath ));
34
+ return $ this ->configCache [$ area ];
35
+ }
36
+ return [];
30
37
}
31
38
32
39
/**
You can’t perform that action at this time.
0 commit comments