init
This commit is contained in:
Executable
+86
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<!--Grid collection-->
|
||||
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
|
||||
<arguments>
|
||||
<argument name="collections" xsi:type="array">
|
||||
<item name="mageplaza_blog_post_listing_data_source" xsi:type="string">Mageplaza\Blog\Model\ResourceModel\Post\Grid\Collection</item>
|
||||
<item name="mageplaza_blog_tag_listing_data_source" xsi:type="string">Mageplaza\Blog\Model\ResourceModel\Tag\Grid\Collection</item>
|
||||
<item name="mageplaza_blog_topic_listing_data_source" xsi:type="string">Mageplaza\Blog\Model\ResourceModel\Topic\Grid\Collection</item>
|
||||
<item name="mageplaza_blog_comment_listing_data_source" xsi:type="string">Mageplaza\Blog\Model\ResourceModel\Comment\Grid\Collection</item>
|
||||
<item name="mageplaza_blog_author_listing_data_source" xsi:type="string">Mageplaza\Blog\Model\ResourceModel\Author\Grid\Collection</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<type name="Mageplaza\Blog\Model\ResourceModel\Author\Grid\Collection">
|
||||
<arguments>
|
||||
<argument name="mainTable" xsi:type="string">mageplaza_blog_author</argument>
|
||||
<argument name="resourceModel" xsi:type="string">Mageplaza\Blog\Model\ResourceModel\Author</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<virtualType name="Mageplaza\Blog\Model\ResourceModel\Post\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
|
||||
<arguments>
|
||||
<argument name="mainTable" xsi:type="string">mageplaza_blog_post</argument>
|
||||
<argument name="resourceModel" xsi:type="string">Mageplaza\Blog\Model\ResourceModel\Post</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
<virtualType name="Mageplaza\Blog\Model\ResourceModel\Tag\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
|
||||
<arguments>
|
||||
<argument name="mainTable" xsi:type="string">mageplaza_blog_tag</argument>
|
||||
<argument name="resourceModel" xsi:type="string">Mageplaza\Blog\Model\ResourceModel\Tag</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
<virtualType name="Mageplaza\Blog\Model\ResourceModel\Topic\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
|
||||
<arguments>
|
||||
<argument name="mainTable" xsi:type="string">mageplaza_blog_topic</argument>
|
||||
<argument name="resourceModel" xsi:type="string">Mageplaza\Blog\Model\ResourceModel\Topic</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
<type name="Magento\Framework\App\Rss\RssManagerInterface">
|
||||
<arguments>
|
||||
<argument name="dataProviders" xsi:type="array">
|
||||
<item name="blog_posts" xsi:type="string">Mageplaza\Blog\Block\Post\Rss\Lists</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
|
||||
<preference for="Mageplaza\Blog\Api\Data\PostInterface" type="Mageplaza\Blog\Model\Post" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\CommentInterface" type="Mageplaza\Blog\Model\Comment" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\TagInterface" type="Mageplaza\Blog\Model\Tag" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\CategoryInterface" type="Mageplaza\Blog\Model\Category" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\TopicInterface" type="Mageplaza\Blog\Model\Topic" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\AuthorInterface" type="Mageplaza\Blog\Model\Author" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\BlogConfigInterface" type="Mageplaza\Blog\Model\BlogConfig" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\MonthlyArchiveInterface" type="Mageplaza\Blog\Model\MonthlyArchive" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\Config\GeneralInterface" type="Mageplaza\Blog\Model\Config\General" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\Config\SidebarInterface" type="Mageplaza\Blog\Model\Config\Sidebar" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\Config\SeoInterface" type="Mageplaza\Blog\Model\Config\Seo" />
|
||||
<preference for="Mageplaza\Blog\Api\BlogRepositoryInterface" type="Mageplaza\Blog\Model\Api\BlogRepository" />
|
||||
|
||||
<preference for="Mageplaza\Blog\Api\Data\SearchResult\PostSearchResultInterface" type="Mageplaza\Blog\Model\ResourceModel\Post\Collection" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\SearchResult\CategorySearchResultInterface" type="Mageplaza\Blog\Model\ResourceModel\Category\Collection" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\SearchResult\TagSearchResultInterface" type="Mageplaza\Blog\Model\ResourceModel\Tag\Collection" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\SearchResult\TopicSearchResultInterface" type="Mageplaza\Blog\Model\ResourceModel\Topic\Collection" />
|
||||
<preference for="Mageplaza\Blog\Api\Data\SearchResult\CommentSearchResultInterface" type="Mageplaza\Blog\Model\ResourceModel\Comment\Collection" />
|
||||
</config>
|
||||
Reference in New Issue
Block a user