Skip to content

Commit 7634d0e

Browse files
committed
MAGETWO-34177: Simplification of Payment Configuration
- CR
1 parent 38dad30 commit 7634d0e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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>

lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/ResultFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\Framework\View\TemplateEngine\Xhtml;
77

8+
use Magento\Framework\Phrase;
89
use Magento\Framework\Exception\LocalizedException;
910
use Magento\Framework\ObjectManagerInterface;
1011

@@ -53,7 +54,7 @@ public function create(array $arguments = [])
5354
$object = $this->objectManager->create($this->instanceName, $arguments);
5455

5556
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"'));
5758
}
5859

5960
return $object;

0 commit comments

Comments
 (0)