<?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_ProductFeed
 * @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">
    <type name="Magento\Framework\Console\CommandList">
        <arguments>
            <argument name="commands" xsi:type="array">
                <item name="mageplaza_productfeed_generate" xsi:type="object">Mageplaza\ProductFeed\Console\Command\Generate</item>
            </argument>
        </arguments>
    </type>
    <!--Grid collection-->
    <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
        <arguments>
            <argument name="collections" xsi:type="array">
                <item name="mageplaza_productfeed_feed_listing_data_source" xsi:type="string">Mageplaza\ProductFeed\Model\ResourceModel\Feed\Grid\Collection</item>
                <item name="mageplaza_productfeed_logs_listing_data_source" xsi:type="string">Mageplaza\ProductFeed\Model\ResourceModel\Logs\Grid\Collection</item>
            </argument>
        </arguments>
    </type>
    <virtualType name="Mageplaza\ProductFeed\Model\ResourceModel\Feed\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
        <arguments>
            <argument name="mainTable" xsi:type="string">mageplaza_productfeed_feed</argument>
            <argument name="resourceModel" xsi:type="string">Mageplaza\ProductFeed\Model\ResourceModel\Feed</argument>
        </arguments>
    </virtualType>
    <virtualType name="Mageplaza\ProductFeed\Model\ResourceModel\Logs\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
        <arguments>
            <argument name="mainTable" xsi:type="string">mageplaza_productfeed_history</argument>
            <argument name="resourceModel" xsi:type="string">Mageplaza\ProductFeed\Model\ResourceModel\History</argument>
        </arguments>
    </virtualType>
</config>