<?xml version="1.0"?>
<!--
* *
 *  @author Yeboyebo
 *  @package Yeboyebo_DonacionPuntosAsociaciones
 */
 -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Yeboyebo\DonacionPuntosAsociaciones\Api\Data\AsociacionInterface" type="Yeboyebo\DonacionPuntosAsociaciones\Model\Asociacion" />
    <virtualType name="YeboyeboDonacionGridFilterPool" 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="YeboyeboDonacionGridDataProvider" type="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider">
        <arguments>
            <argument name="collection" xsi:type="object" shared="false">Yeboyebo\DonacionPuntosAsociaciones\Model\ResourceModel\Asociacion\Collection</argument>
            <argument name="filterPool" xsi:type="object" shared="false">YeboyeboDonacionGridFilterPool</argument>
        </arguments>
    </virtualType>
    <virtualType name="Yeboyebo\DonacionPuntosAsociaciones\Model\ResourceModel\Asociacion\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
        <arguments>
            <argument name="mainTable" xsi:type="string">yeboyebo_asociaciones_donacion</argument>
            <argument name="resourceModel" xsi:type="string">Yeboyebo\DonacionPuntosAsociaciones\Model\ResourceModel\Asociacion</argument>
        </arguments>
    </virtualType>
    <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
        <arguments>
            <argument name="collections" xsi:type="array">
                <item name="yeboyebo_donacion_index_listing_data_source" xsi:type="string">Yeboyebo\DonacionPuntosAsociaciones\Model\ResourceModel\Asociacion\Grid\Collection</item>
            </argument>
        </arguments>
    </type>
</config>