<?xml version="1.0"?>
<!--
* *
 *  @author Yeboyebo
 *  @package Yeboyebo_Stores
 */
 -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <virtualType name="YeboyeboStoresGridFilterPool" type="Magento\Framework\View\Element\UiComponent\DataProvider\FilterPool">
        <arguments>
            <argument name="appliers" xsi:type="array">
                <item name="regular" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\RegularFilter</item>
                <item name="fulltext" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\FulltextFilter</item>
            </argument>
        </arguments>
    </virtualType>
    <virtualType name="YeboyeboStoresGridDataProvider" type="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider">
        <arguments>
            <argument name="collection" xsi:type="object" shared="false">Yeboyebo\Stores\Model\ResourceModel\Store\Collection</argument>
            <argument name="filterPool" xsi:type="object" shared="false">YeboyeboStoresGridFilterPool</argument>
        </arguments>
    </virtualType>
    <virtualType name="Yeboyebo\Stores\Model\ResourceModel\Store\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
        <arguments>
            <argument name="mainTable" xsi:type="string">yeboyebo_stores</argument>
            <argument name="resourceModel" xsi:type="string">Yeboyebo\Stores\Model\ResourceModel\Store</argument>
        </arguments>
    </virtualType>
    <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
        <arguments>
            <argument name="collections" xsi:type="array">
                <item name="yeboyebo_stores_index_listing_data_source" xsi:type="string">Yeboyebo\Stores\Model\ResourceModel\Store\Grid\Collection</item>
            </argument>
        </arguments>
    </type>
    <preference for="Yeboyebo\Stores\Api\DisponibilidadEnTiendaInterface" type="Yeboyebo\Stores\Model\DisponibilidadEnTienda"/>
</config>