Files

94 lines
5.6 KiB
XML
Executable File

<?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="\Monolog\Logger">
<arguments>
<argument name="name" xsi:type="string">JRNetSuiteLogger</argument>
<argument name="handlers" xsi:type="array">
<item name="system" xsi:type="object">JR\NetSuite\Logger\Handler</item>
</argument>
</arguments>
</type>
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="jr_netsuite_productqueue_listing_data_source" xsi:type="string">JR\NetSuite\Model\ResourceModel\ProductQueue\Grid\Collection</item>
</argument>
</arguments>
</type>
<virtualType name="JR\NetSuite\Model\ResourceModel\ProductQueue\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
<arguments>
<argument name="mainTable" xsi:type="string">jr_netsuite_product_queue</argument>
<argument name="resourceModel" xsi:type="string">JR\NetSuite\Model\ResourceModel\ProductQueue</argument>
</arguments>
</virtualType>
<preference for="JR\NetSuite\Api\LocationRepositoryInterface" type="JR\NetSuite\Model\LocationRepository"/>
<preference for="JR\NetSuite\Api\Data\LocationInterface" type="JR\NetSuite\Model\Location"/>
<preference for="JR\NetSuite\Api\Data\LocationSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="jr_netsuite_location_listing_data_source" xsi:type="string">JR\NetSuite\Model\ResourceModel\Location\Grid\Collection</item>
</argument>
</arguments>
</type>
<virtualType name="JR\NetSuite\Model\ResourceModel\Location\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
<arguments>
<argument name="mainTable" xsi:type="string">jr_netsuite_location</argument>
<argument name="resourceModel" xsi:type="string">JR\NetSuite\Model\ResourceModel\Location</argument>
</arguments>
</virtualType>
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="jr_netsuite_customerqueue_listing_data_source" xsi:type="string">JR\NetSuite\Model\ResourceModel\CustomerQueue\Grid\Collection</item>
</argument>
</arguments>
</type>
<virtualType name="JR\NetSuite\Model\ResourceModel\CustomerQueue\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
<arguments>
<argument name="mainTable" xsi:type="string">jr_netsuite_customer_queue</argument>
<argument name="resourceModel" xsi:type="string">JR\NetSuite\Model\ResourceModel\CustomerQueue</argument>
</arguments>
</virtualType>
<type name="\Magento\Customer\Model\EmailNotification">
<plugin name="disable-new-customer-email-notification" type="JR\NetSuite\Plugin\EmailNotification" sortOrder="1"/>
</type>
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="jr_netsuite_orderqueue_listing_data_source" xsi:type="string">JR\NetSuite\Model\ResourceModel\OrderQueue\Grid\Collection</item>
</argument>
</arguments>
</type>
<virtualType name="JR\NetSuite\Model\ResourceModel\OrderQueue\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
<arguments>
<argument name="mainTable" xsi:type="string">jr_netsuite_order_queue</argument>
<argument name="resourceModel" xsi:type="string">JR\NetSuite\Model\ResourceModel\OrderQueue</argument>
</arguments>
</virtualType>
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="jr_netsuite_rmaqueue_listing_data_source" xsi:type="string">JR\NetSuite\Model\ResourceModel\RmaQueue\Grid\Collection</item>
</argument>
</arguments>
</type>
<virtualType name="JR\NetSuite\Model\ResourceModel\RmaQueue\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
<arguments>
<argument name="mainTable" xsi:type="string">jr_netsuite_rma_queue</argument>
<argument name="resourceModel" xsi:type="string">JR\NetSuite\Model\ResourceModel\RmaQueue</argument>
</arguments>
</virtualType>
<virtualType name="Magento\Sales\Model\ResourceModel\Order\Grid" type="Magento\Sales\Model\ResourceModel\Grid">
<arguments>
<argument name="columns" xsi:type="array">
<item name="netsuite_id" xsi:type="string">sales_order.netsuite_id</item>
<item name="netsuite_number" xsi:type="string">sales_order.netsuite_number</item>
</argument>
</arguments>
</virtualType>
<type name="Mirasvit\Rma\Helper\Rma\Event">
<plugin name="plugin_send_email_when_rma_changed" type="JR\NetSuite\Plugin\SendEmailWhenRmaChanged" sortOrder="1" disabled="false"/>
</type>
</config>