12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?xml version="1.0"?>
- <!--
- /**
- * Copyright © 2016 Ihor Vansach (ihor@magefan.com). All rights reserved.
- * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
- *
- * Glory to Ukraine! Glory to the heroes!
- */
- -->
- <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
- <preference for="Magefan\Blog\Api\PostManagementInterface" type="Magefan\Blog\Model\PostManagement" />
- <preference for="Magefan\Blog\Api\CategoryManagementInterface" type="Magefan\Blog\Model\CategoryManagement" />
- <!-- deprecated <preference for="Magento\Sitemap\Model\Sitemap" type="Magefan\Blog\Model\Sitemap" /> -->
- <virtualType name="Magefan\Blog\ImageUpload" type="Magento\Catalog\Model\ImageUploader">
- <arguments>
- <argument name="baseTmpPath" xsi:type="string">magefan_blog/tmp</argument>
- <argument name="basePath" xsi:type="string">magefan_blog</argument>
- <argument name="allowedExtensions" xsi:type="array">
- <item name="jpg" xsi:type="string">jpg</item>
- <item name="jpeg" xsi:type="string">jpeg</item>
- <item name="gif" xsi:type="string">gif</item>
- <item name="png" xsi:type="string">png</item>
- </argument>
- </arguments>
- </virtualType>
- <type name="Magefan\Blog\Controller\Adminhtml\Post\Upload\FeaturedImg">
- <arguments>
- <argument name="imageUploader" xsi:type="object">Magefan\Blog\ImageUpload</argument>
- </arguments>
- </type>
- <type name="Magefan\Blog\Controller\Adminhtml\Post\Upload\OgImg">
- <arguments>
- <argument name="imageUploader" xsi:type="object">Magefan\Blog\ImageUpload</argument>
- </arguments>
- </type>
- <type name="Magefan\Blog\Controller\Adminhtml\Post\Upload\Gallery">
- <arguments>
- <argument name="imageUploader" xsi:type="object">Magefan\Blog\ImageUpload</argument>
- </arguments>
- </type>
- <type name="Plumrocket\Amp\Helper\Data">
- <plugin name="plumrocket_amp_helper_data_magefan_blog"
- type="Magefan\Blog\Plugin\Plumrocket\Amp\HelperDataPlugin" sortOrder="10"/>
- </type>
- <type name="Plumrocket\Amp\Model\System\Config\Source\Page">
- <plugin name="plumrocket_amp_source_page_magefan_blog"
- type="Magefan\Blog\Plugin\Plumrocket\Amp\SourcePagePlugin" sortOrder="10"/>
- </type>
- <type name="Magento\Sitemap\Model\Sitemap">
- <plugin name="magento_sitemap_model_sitemap_magefan_blog"
- type="Magefan\Blog\Plugin\Magento\Sitemap\SitemapPlugin" sortOrder="10"/>
- </type>
- </config>
|