File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
app/code/Magento/Config/etc
lib/internal/Magento/Framework/View/TemplateEngine/Xhtml Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © 2015 Magento. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <xs : schema xmlns : xs =" http://www.w3.org/2001/XMLSchema" >
9
+ <xs : redefine schemaLocation =" system_file.xsd" >
10
+ <xs : complexType name =" configDeclaration" >
11
+ <xs : sequence >
12
+ <xs : any minOccurs =" 0" />
13
+ </xs : sequence >
14
+ </xs : complexType >
15
+ </xs : redefine >
16
+ </xs : schema >
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \View \TemplateEngine \Xhtml ;
7
7
8
+ use Magento \Framework \Phrase ;
8
9
use Magento \Framework \Exception \LocalizedException ;
9
10
use Magento \Framework \ObjectManagerInterface ;
10
11
@@ -53,7 +54,7 @@ public function create(array $arguments = [])
53
54
$ object = $ this ->objectManager ->create ($ this ->instanceName , $ arguments );
54
55
55
56
if (!($ object instanceof ResultInterface)) {
56
- throw new LocalizedException (__ ('This class must implement the "ResultInterface" ' ));
57
+ throw new LocalizedException (new Phrase ('This class must implement the "ResultInterface" ' ));
57
58
}
58
59
59
60
return $ object ;
You can’t perform that action at this time.
0 commit comments