<?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_CustomForm
 * @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_custom_form_form_listing_data_source" xsi:type="string">Mageplaza\CustomForm\Model\ResourceModel\Form\Grid\Collection</item>
                <item name="mageplaza_custom_form_responses_listing_data_source" xsi:type="string">Mageplaza\CustomForm\Model\ResourceModel\Responses\Grid\Collection</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Framework\App\Request\CsrfValidator">
        <plugin name="mp_custom_form_csrf" type="Mageplaza\CustomForm\Plugin\CsrfValidatorPlugin"/>
    </type>
    <type name="Magento\Framework\Mail\TransportInterfaceFactory">
        <arguments>
            <argument name="instanceName" xsi:type="string">Mageplaza\CustomForm\Mail\Transport</argument>
        </arguments>
        <plugin name="mp_custom_form_transport_factory" type="Mageplaza\CustomForm\Mail\TransportFactory"/>
    </type>
</config>
