forked from NVision-Commerce-Solutions/module-customer-price
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdi.xml
41 lines (38 loc) · 2.04 KB
/
di.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Commerce365\CustomerPrice\Api\CustomerPriceInterface"
type="Commerce365\CustomerPrice\Model\CustomerPrice"/>
<preference for="Commerce365\CustomerPrice\Service\Mapper\ResponseToDatabaseMapperInterface"
type="Commerce365\CustomerPrice\Service\Mapper\ResponseToDatabaseMapper"/>
<preference for="Magento\Catalog\Block\Product\View" type="Commerce365\CustomerPrice\Block\Product\View"/>
<virtualType name="Commerce365CustomerPriceSyncHandler" type="Magento\Framework\Logger\Handler\Base">
<arguments>
<argument name="fileName" xsi:type="string">/var/log/Commerce365CustomerPriceSync.log</argument>
</arguments>
</virtualType>
<virtualType name="Commerce365CustomerPriceSyncLogger" type="Magento\Framework\Logger\Monolog">
<arguments>
<argument name="handlers" xsi:type="array">
<item name="debug" xsi:type="object">Commerce365CustomerPriceSyncHandler</item>
</argument>
</arguments>
</virtualType>
<type name="Commerce365\CustomerPrice\Model\CustomerPrice">
<arguments>
<argument name="logger" xsi:type="object">Commerce365CustomerPriceSyncLogger</argument>
</arguments>
</type>
<type name="Magento\Framework\Pricing\Render\Amount">
<plugin name="commerce365_list_price_check_ajax_call"
type="Commerce365\CustomerPrice\Plugin\ListCheckAjaxPriceCall"
sortOrder="20"/>
</type>
<type name="Magento\Catalog\Model\Product">
<plugin name="commerce365_pricing_product" type="Commerce365\CustomerPrice\Plugin\ProductPrice" sortOrder="1" />
</type>
<type name="Magento\Customer\CustomerData\Customer">
<plugin name="commerce365_add_customer_token"
type="Commerce365\CustomerPrice\Plugin\AddCustomerToken"/>
</type>
</config>