<?xml version="1.0"?>
<!--
/**
 * Landofcoder
 * 
 * NOTICE OF LICENSE
 * 
 * This source file is subject to the Landofcoder.com license that is
 * available through the world-wide-web at this URL:
 * http://landofcoder.com/license
 * 
 * DISCLAIMER
 * 
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 * 
 * @category   Landofcoder
 * @package    Lof_RequestForQuote
 * @copyright  Copyright (c) 2017 Landofcoder (http://www.landofcoder.com/)
 * @license    http://www.landofcoder.com/LICENSE-1.0.html
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
	<type name="Magento\Customer\CustomerData\SectionPoolInterface">
		<arguments>
			<argument name="sectionSourceMap" xsi:type="array">
				<item name="quote" xsi:type="string">Lof\RequestForQuote\CustomerData\Quote</item>
			</argument>
		</arguments>
	</type>
	<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
        <arguments>
            <argument name="collections" xsi:type="array">
                <item name="quotation_quote_listing_data_source" xsi:type="string">Lof\RequestForQuote\Model\ResourceModel\Quote\Grid\Collection</item>
            </argument>
        </arguments>
    </type>
    <type name="Lof\RequestForQuote\Model\ResourceModel\Quote\Grid\Collection">
        <arguments>
            <argument name="mainTable" xsi:type="string">lof_rfq_quote</argument>
            <argument name="eventPrefix" xsi:type="string">quotation_quote_grid_collection</argument>
            <argument name="eventObject" xsi:type="string">quote_grid_collection</argument>
            <argument name="resourceModel" xsi:type="string">Lof\RequestForQuote\Model\ResourceModel\Quote</argument>
        </arguments>
    </type>

    <type name="\Lof\RequestForQuote\Controller\AbstractIndex">
        <plugin name="authentication" type="\Lof\RequestForQuote\Controller\Index\Plugin" sortOrder="10"/>
    </type>
</config>