File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
lib/internal/Magento/Framework/Config Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Framework \Filesystem ;
12
12
use Magento \Framework \View \DesignInterface ;
13
13
use Magento \Framework \App \Filesystem \DirectoryList ;
14
+ use Symfony \Component \Config \Definition \Exception \Exception ;
14
15
15
16
class FileResolver implements \Magento \Framework \Config \FileResolverInterface
16
17
{
@@ -76,9 +77,14 @@ public function get($filename, $scope)
76
77
. '/ '
77
78
. $ this ->themePath
78
79
. '/etc/view.xml ' ;
79
- $ designDom = new \DOMDocument ;
80
- $ designDom ->load ($ designPath );
81
- $ iterator [$ designPath ] = $ designDom ->saveXML ();
80
+ if (file_exists ($ designPath )) {
81
+ try {
82
+ $ designDom = new \DOMDocument ;
83
+ $ designDom ->load ($ designPath );
84
+ $ iterator [$ designPath ] = $ designDom ->saveXML ();
85
+ } catch (Exception $ e ) {
86
+ }
87
+ }
82
88
break ;
83
89
default :
84
90
$ iterator = $ this ->iteratorFactory ->create ([]);
You can’t perform that action at this time.
0 commit comments