Your IP : 127.0.0.1
<?xml version="1.0"?>
<!--
/*////////////////////////////////////////////////////////////////////////////////
\\\\\\\\\\\\\\\\\\\\\\\\\ FME Productattachments Module \\\\\\\\\\\\\\\\\\\\\\\\\
/////////////////////////////////////////////////////////////////////////////////
\\\\\\\\\\\\\\\\\\\\\\\\\ NOTICE OF LICENSE\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
/////// ///////
\\\\\\\ This source file is subject to the Open Software License (OSL 3.0)\\\\\\\
/////// that is bundled with this package in the file LICENSE.txt. ///////
\\\\\\\ It is also available through the world-wide-web at this URL: \\\\\\\
/////// http://opensource.org/licenses/osl-3.0.php ///////
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
/////// * @category FME ///////
\\\\\\\ * @package FME_Productattachments \\\\\\\
/////// * @author FME Extensions <support@fmeextensions.com> /////
\\\\\\\ \\\\\\\
/////////////////////////////////////////////////////////////////////////////////
\\ * @copyright Copyright 2015 © fmeextensions.com All right reserved\\\\\\
/////////////////////////////////////////////////////////////////////////////////
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="FME\Productattachments\Model\ResourceModel\Productattachments\Grid\Collection">
<arguments>
<argument name="mainTable" xsi:type="string">productattachments</argument>
<argument name="eventPrefixProductattachments" xsi:type="string">productattachments_grid_collection</argument>
<argument name="eventObjectProductattachments" xsi:type="string">productattachments_grid_collection</argument>
<argument name="resourceModel" xsi:type="string">FME\Productattachments\Model\ResourceModel\Productattachments</argument>
</arguments>
</type>
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="productattachments_listing_data_source" xsi:type="string">FME\Productattachments\Model\ResourceModel\Productattachments\Grid\Collection</item>
<item name="productcats_listing_data_source" xsi:type="string">FME\Productattachments\Model\ResourceModel\Productcats\Grid\Collection</item>
<item name="extensions_listing_data_source" xsi:type="string">FME\Productattachments\Model\ResourceModel\Extensions\Grid\Collection</item>
</argument>
</arguments>
</type>
<virtualType name="ProductattachmentsGirdFilterPool" type="Magento\Framework\View\Element\UiComponent\DataProvider\FilterPool">
<arguments>
<argument name="appliers" xsi:type="array">
<item name="regular" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\RegularFilter</item>
<item name="fulltext" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\FulltextFilter</item>
</argument>
</arguments>
</virtualType>
<virtualType name="ProductattachmentsGridDataProvider" type="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider">
<arguments>
<argument name="collection" xsi:type="object" shared="false">FME\Productattachments\Model\ResourceModel\Productattachments\Collection</argument>
<argument name="filterPool" xsi:type="object" shared="false">ProductattachmentsGirdFilterPool</argument>
</arguments>
</virtualType>
<type name="FME\Productattachments\Controller\Adminhtml\Productattachments\Image\Upload">
<arguments>
<argument name="imageUploader" xsi:type="object">FME\Productattachments\CategoryImageUpload</argument>
</arguments>
</type>
<virtualType name="FME\Productattachments\CategoryImageUpload" type="FME\Productattachments\Model\ImageUploader">
<arguments>
<argument name="baseTmpPath" xsi:type="string">productattachments/files</argument>
<argument name="basePath" xsi:type="string">productattachments/files</argument>
<argument name="allowedExtensions" xsi:type="array">
</argument>
</arguments>
</virtualType>
<!-- upload for category -->
<type name="FME\Productattachments\Controller\Adminhtml\Productcats\Image\Uploadcats">
<arguments>
<argument name="imageUploader" xsi:type="object">FME\Productattachments\CatImageUpload</argument>
</arguments>
</type>
<virtualType name="FME\Productattachments\CatImageUpload" type="FME\Productattachments\Model\ImageUploader">
<arguments>
<argument name="baseTmpPath" xsi:type="string">productattachments/cats</argument>
<argument name="basePath" xsi:type="string">productattachments/cats</argument>
<argument name="allowedExtensions" xsi:type="array">
</argument>
</arguments>
</virtualType>
<!-- upload for icon -->
<type name="FME\Productattachments\Controller\Adminhtml\Extensions\Image\Uploadicon">
<arguments>
<argument name="imageUploader" xsi:type="object">FME\Productattachments\ExtensionsImageUpload</argument>
</arguments>
</type>
<virtualType name="FME\Productattachments\ExtensionsImageUpload" type="FME\Productattachments\Model\ImageUploader">
<arguments>
<argument name="baseTmpPath" xsi:type="string">productattachments/icons</argument>
<argument name="basePath" xsi:type="string">productattachments/icons</argument>
<argument name="allowedExtensions" xsi:type="array">
</argument>
</arguments>
</virtualType>
<!-- Attachements Categories -->
<type name="FME\Productattachments\Model\ResourceModel\Productcats\Grid\Collection">
<arguments>
<argument name="mainTable" xsi:type="string">productattachments_cats</argument>
<argument name="eventPrefixProductcats" xsi:type="string">productcats_grid_collection</argument>
<argument name="eventObjectProductcats" xsi:type="string">productcats_grid_collection</argument>
<argument name="resourceModel" xsi:type="string">FME\Productattachments\Model\ResourceModel\Productcats</argument>
</arguments>
</type>
<!-- <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="productcats_listing_data_source" xsi:type="string">FME\Productattachments\Model\Resource\Productcats\Grid\Collection</item>
</argument>
</arguments>
</type> -->
<virtualType name="ProductcatsGirdFilterPool" type="Magento\Framework\View\Element\UiComponent\DataProvider\FilterPool">
<arguments>
<argument name="appliers" xsi:type="array">
<item name="regular" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\RegularFilter</item>
<item name="fulltext" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\FulltextFilter</item>
</argument>
</arguments>
</virtualType>
<virtualType name="ProductcatsGridDataProvider" type="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider">
<arguments>
<argument name="collection" xsi:type="object" shared="false">FME\Productattachments\Model\ResourceModel\Productcats\Collection</argument>
<argument name="filterPool" xsi:type="object" shared="false">ProductcatsGirdFilterPool</argument>
</arguments>
</virtualType>
<!-- Attachements Extensions and icons -->
<type name="FME\Productattachments\Model\ResourceModel\Extensions\Grid\Collection">
<arguments>
<argument name="mainTable" xsi:type="string">productattachments_extensions</argument>
<argument name="eventPrefixExtensions" xsi:type="string">extensions_grid_collection</argument>
<argument name="eventObjectExtensions" xsi:type="string">extensions_grid_collection</argument>
<argument name="resourceModel" xsi:type="string">FME\Productattachments\Model\ResourceModel\Extensions</argument>
</arguments>
</type>
<virtualType name="ExtensionsGirdFilterPool" type="Magento\Framework\View\Element\UiComponent\DataProvider\FilterPool">
<arguments>
<argument name="appliers" xsi:type="array">
<item name="regular" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\RegularFilter</item>
<item name="fulltext" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\FulltextFilter</item>
</argument>
</arguments>
</virtualType>
<virtualType name="ExtensionsGridDataProvider" type="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider">
<arguments>
<argument name="collection" xsi:type="object" shared="false">FME\Productattachments\Model\ResourceModel\Extensions\Collection</argument>
<argument name="filterPool" xsi:type="object" shared="false">ExtensionsGirdFilterPool</argument>
</arguments>
</virtualType>
<!-- Products grid -->
<virtualType name="ProductsGridFilterPool" type="Magento\Framework\View\Element\UiComponent\DataProvider\FilterPool">
<arguments>
<argument name="appliers" xsi:type="array">
<item name="regular" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\RegularFilter</item>
<item name="fulltext" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\FulltextFilter</item>
</argument>
</arguments>
</virtualType>
<type name="FME\Productattachments\Model\ResourceModel\Products\Grid\Collection">
<arguments>
<argument name="mainTable" xsi:type="string">productattachments_products</argument>
<argument name="eventPrefix" xsi:type="string">products_grid_collection</argument>
<argument name="eventObject" xsi:type="string">products_grid_collection</argument>
<argument name="resourceModel" xsi:type="string">FME\Productattachments\Model\ResourceModel\Products</argument>
</arguments>
</type>
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="productattachments_products_listing_data_source" xsi:type="string">FME\Productattachments\Model\ResourceModel\Products\Grid\Collection</item>
</argument>
</arguments>
</type>
<virtualType name="ProductsGridDataProvider" type="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider">
<arguments>
<argument name="collection" xsi:type="object" shared="false">FME\Productattachments\Model\ResourceModel\Products\Collection</argument>
<argument name="filterPool" xsi:type="object" shared="false">ProductsGridFilterPool</argument>
</arguments>
</virtualType>
</config>