<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Shipping Restrictions for Magento 2
 */-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Amasty\Shiprestriction\Controller\Adminhtml\Rule\Delete">
        <arguments>
            <argument name="ruleModel" xsi:type="object" shared="false">Amasty\Shiprestriction\Model\Rule</argument>
            <argument name="resource" xsi:type="object">Amasty\Shiprestriction\Model\ResourceModel\Rule</argument>
        </arguments>
    </type>

    <type name="Amasty\Shiprestriction\Controller\Adminhtml\Rule\Duplicate">
        <arguments>
            <argument name="ruleModel" xsi:type="object" shared="false">Amasty\Shiprestriction\Model\Rule</argument>
            <argument name="resource" xsi:type="object">Amasty\Shiprestriction\Model\ResourceModel\Rule</argument>
        </arguments>
    </type>

    <type name="Amasty\Shiprestriction\Controller\Adminhtml\Rule\Edit">
        <arguments>
            <argument name="ruleModel" xsi:type="object" shared="false">Amasty\Shiprestriction\Model\Rule</argument>
            <argument name="resource" xsi:type="object">Amasty\Shiprestriction\Model\ResourceModel\Rule</argument>
        </arguments>
    </type>

    <type name="Amasty\Shiprestriction\Controller\Adminhtml\Rule\MassAction">
        <arguments>
            <argument name="collection" xsi:type="object" shared="false">Amasty\Shiprestriction\Model\ResourceModel\Rule\Collection</argument>
            <argument name="resource" xsi:type="object">Amasty\Shiprestriction\Model\ResourceModel\Rule</argument>
        </arguments>
    </type>

    <type name="Amasty\Shiprestriction\Controller\Adminhtml\Rule\Save">
        <arguments>
            <argument name="ruleModel" xsi:type="object" shared="false">Amasty\Shiprestriction\Model\Rule</argument>
            <argument name="resource" xsi:type="object">Amasty\Shiprestriction\Model\ResourceModel\Rule</argument>
        </arguments>
    </type>


    <type name="Amasty\Shiprestriction\Block\Adminhtml\System\Config\SuggestNotification">
        <arguments>
            <argument name="suggestModules" xsi:type="array">
                <item name="shipping_restriction_hyva" xsi:type="string">Amasty_ShipRestrictionHyva</item>
                <item name="shipping_restriction_hyva_checkout" xsi:type="string">Amasty_ShipRestrictionHyvaCheckout</item>
                <item name="shipping_restriction_restricted_products" xsi:type="string">Amasty_ShiprestrictionRestrictedProducts</item>
            </argument>
        </arguments>
    </type>
</config>
