Skip to content

Commit f1f6ecf

Browse files
author
Bryant Luk
committed
MAGETWO-32642: Move Magento\Core\Model\TemplateEngine\Plugin\DebugHints.php to the Magento_Developer module
- Move code and configuration
1 parent 911025c commit f1f6ecf

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

app/code/Magento/Core/etc/di.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -456,14 +456,6 @@
456456
<argument name="fileStorage" xsi:type="object">Magento\Core\Model\File\Storage\File\Proxy</argument>
457457
</arguments>
458458
</type>
459-
<type name="Magento\Framework\View\TemplateEngineFactory">
460-
<plugin name="debug_hints" type="Magento\Core\Model\TemplateEngine\Plugin\DebugHints" sortOrder="10"/>
461-
<arguments>
462-
<argument name="engines" xsi:type="array">
463-
<item name="phtml" xsi:type="string">Magento\Framework\View\TemplateEngine\Php</item>
464-
</argument>
465-
</arguments>
466-
</type>
467459
<type name="Magento\Framework\Image">
468460
<arguments>
469461
<argument name="adapter" xsi:type="object">Magento\Framework\Image\Adapter\Gd2</argument>

app/code/Magento/Core/Model/TemplateEngine/Plugin/DebugHints.php renamed to app/code/Magento/Developer/Model/TemplateEngine/Plugin/DebugHints.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Copyright © 2015 Magento. All rights reserved.
66
* See COPYING.txt for license details.
77
*/
8-
namespace Magento\Core\Model\TemplateEngine\Plugin;
8+
namespace Magento\Developer\Model\TemplateEngine\Plugin;
99

1010
class DebugHints
1111
{

app/code/Magento/Developer/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.4.11|~5.5.0|~5.6.0",
6+
"magento/module-core": "0.42.0-beta3",
67
"magento/framework": "0.42.0-beta3",
78
"magento/magento-composer-installer": "*"
89
},

app/code/Magento/Developer/etc/di.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © 2015 Magento. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
9+
<type name="Magento\Framework\View\TemplateEngineFactory">
10+
<plugin name="debug_hints" type="Magento\Developer\Model\TemplateEngine\Plugin\DebugHints" sortOrder="10"/>
11+
<arguments>
12+
<argument name="engines" xsi:type="array">
13+
<item name="phtml" xsi:type="string">Magento\Framework\View\TemplateEngine\Php</item>
14+
</argument>
15+
</arguments>
16+
</type>
17+
</config>

0 commit comments

Comments
 (0)