<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Yeboyebo\UpdateMonitor\Model\Scanner\UpdateScanner">
        <arguments>
            <argument name="sources" xsi:type="array">
                <item name="core" xsi:type="object">Yeboyebo\UpdateMonitor\Model\Scanner\Source\MagentoCoreSource</item>
                <item name="quality_patches" xsi:type="object">Yeboyebo\UpdateMonitor\Model\Scanner\Source\QualityPatchesSource</item>
                <item name="composer" xsi:type="object">Yeboyebo\UpdateMonitor\Model\Scanner\Source\ComposerPackagesSource</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Framework\Console\CommandListInterface">
        <arguments>
            <argument name="commands" xsi:type="array">
                <item name="yeboyebo_updatemonitor_scan" xsi:type="object">Yeboyebo\UpdateMonitor\Console\Command\ScanCommand</item>
            </argument>
        </arguments>
    </type>
    <virtualType name="Yeboyebo\UpdateMonitor\Model\ResourceModel\Recipient\Grid\Collection"
                 type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
        <arguments>
            <argument name="mainTable" xsi:type="string">yeboyebo_updatemonitor_recipient</argument>
            <argument name="resourceModel" xsi:type="string">Yeboyebo\UpdateMonitor\Model\ResourceModel\Recipient</argument>
        </arguments>
    </virtualType>
    <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
        <arguments>
            <argument name="collections" xsi:type="array">
                <item name="updatemonitor_recipient_listing_data_source" xsi:type="string">Yeboyebo\UpdateMonitor\Model\ResourceModel\Recipient\Grid\Collection</item>
            </argument>
        </arguments>
    </type>
</config>
