Skip to content

Commit ec1074f

Browse files
author
b__b
committed
commit correct file
1 parent fffac44 commit ec1074f

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

etc/frontend/di.xml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0"?>
1+
<?xml version="1.0" ?>
22
<!--
33
/**
44
* Copyright © Magefan (support@magefan.com). All rights reserved.
@@ -7,22 +7,21 @@
77
-->
88

99
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
10-
<virtualType name="Magefan\ProductLabel\ImageUpload" type="Magefan\ProductLabel\Model\ImageUploader">
11-
<arguments>
12-
<argument name="baseTmpPath" xsi:type="string">magefan_product_label/tmp</argument>
13-
<argument name="basePath" xsi:type="string">magefan_product_label</argument>
14-
<argument name="allowedExtensions" xsi:type="array">
15-
<item name="jpg" xsi:type="string">jpg</item>
16-
<item name="jpeg" xsi:type="string">jpeg</item>
17-
<item name="gif" xsi:type="string">gif</item>
18-
<item name="png" xsi:type="string">png</item>
19-
</argument>
20-
</arguments>
21-
</virtualType>
10+
<type name="Magento\Catalog\Block\Product\Image">
11+
<plugin name="wrap_image_with_mf_comments" type="Magefan\ProductLabel\Plugin\Frontend\Magento\Catalog\Block\Product\Image" sortOrder="10" disabled="false"/>
12+
</type>
13+
<type name="Magento\Framework\Controller\ResultInterface">
14+
<plugin name="replace_mf_comments_on_product_labels" type="Magefan\ProductLabel\Plugin\Frontend\Magento\Framework\Controller\ResultInterface" sortOrder="-21" disabled="false"/>
15+
</type>
16+
<type name="Magento\Catalog\Block\Product\View\Gallery">
17+
<plugin name="wrap_gallery_image_with_mf_comments" type="Magefan\ProductLabel\Plugin\Frontend\Magento\Catalog\Block\Product\View\Gallery" sortOrder="10" disabled="false"/>
18+
</type>
19+
20+
<type name="MageSuite\ProductTile\Block\Tile\Container">
21+
<plugin name="add_mf_comments_to_mage_suite_product_tile" type="Magefan\ProductLabel\Plugin\Frontend\MageSuite\ProductTile\Block\Tile\Container" sortOrder="10" disabled="false"/>
22+
</type>
2223

23-
<type name="Magefan\ProductLabel\Controller\Adminhtml\Rule\Upload">
24-
<arguments>
25-
<argument name="imageUploader" xsi:type="object">Magefan\ProductLabel\ImageUpload</argument>
26-
</arguments>
24+
<type name="Codazon\ThemeLayoutPro\Helper\Data">
25+
<plugin name="add_mf_comments_to_codazon_theme_layout_pro_data_helper" type="Magefan\ProductLabel\Plugin\Frontend\Codazon\ThemeLayoutPro\Helper\Data" sortOrder="10" disabled="false"/>
2726
</type>
2827
</config>

0 commit comments

Comments
 (0)