| Current Path : /home/rtorresani/www/app/code/Webkul/BuyButton/etc/ |
| Current File : //home/rtorresani/www/app/code/Webkul/BuyButton/etc/di.xml |
<?xml version="1.0"?>
<!--
/**
* Webkul Software.
*
* @category Webkul
* @package Webkul_BuyButton
* @author Webkul
* @copyright Copyright (c) Webkul Software Private Limited (https://webkul.com)
* @license https://store.webkul.com/license.html
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Webkul\BuyButton\Api\AllowCorsInterface" type="Webkul\BuyButton\Model\AllowCors"/>
<virtualType name="Magento\Catalog\Model\Api\SearchCriteria\ProductCollectionProcessor" type="Magento\Eav\Model\Api\SearchCriteria\CollectionProcessor">
<arguments>
<argument name="processors" xsi:type="array">
<item name="filters" xsi:type="object">Magento\Catalog\Model\Api\SearchCriteria\CollectionProcessor\ProductFilterProcessor</item>
<item name="sorting" xsi:type="object">Magento\Framework\Api\SearchCriteria\CollectionProcessor\SortingProcessor</item>
<item name="pagination" xsi:type="object">Magento\Framework\Api\SearchCriteria\CollectionProcessor\PaginationProcessor</item>
</argument>
</arguments>
</virtualType>
<type name="Magento\Catalog\Ui\DataProvider\Product\ProductRenderCollectorComposite">
<arguments>
<argument name="productProviders" xsi:type="array">
<item name="extraInfo" xsi:type="object">\Webkul\BuyButton\Ui\DataProvider\Product\Listing\Collector\AdditionalInfo</item>
</argument>
</arguments>
</type>
<type name="Magento\Webapi\Controller\Rest">
<plugin name="request_cors_header" type="Webkul\BuyButton\Plugin\CorsHeadersPlugin" />
</type>
<type name="Magento\Framework\Webapi\Rest\Request">
<plugin name="options_request_handle" type="Webkul\BuyButton\Plugin\CorsAllowedMethodPlugin" />
</type>
<type name="Magento\Webapi\Controller\Rest\Router">
<plugin name="options_request_handle" type="Webkul\BuyButton\Plugin\CorsSetRoutePlugin" />
</type>
<type name="Magento\Catalog\Model\ProductRender\FormattedPriceInfoBuilder">
<plugin name="priceBuilderaroundplugin" type="Webkul\BuyButton\Plugin\PriceBuilder" />
</type>
<type name="Magento\Quote\Model\GuestCart\GuestCartItemRepository">
<plugin name="guestCartAfterplugin" type="Webkul\BuyButton\Plugin\GuestCartItem" />
</type>
</config>