di.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  9. <type name="Magento\Tax\Model\Calculation">
  10. <arguments>
  11. <argument name="customerAccountManagement" xsi:type="object">Magento\Customer\Api\AccountManagementInterface\Proxy</argument>
  12. <argument name="customerGroupManagement" xsi:type="object">Magento\Customer\Api\GroupManagementInterface\Proxy</argument>
  13. <argument name="customerGroupRepository" xsi:type="object">Magento\Customer\Api\GroupRepositoryInterface\Proxy</argument>
  14. <argument name="customerRepository" xsi:type="object">Magento\Customer\Api\CustomerRepositoryInterface\Proxy</argument>
  15. </arguments>
  16. </type>
  17. <type name="Magento\Checkout\CustomerData\Cart">
  18. <plugin name="cart_private_data_tax" type="Magento\Tax\Plugin\Checkout\CustomerData\Cart"/>
  19. </type>
  20. <type name="Magento\Customer\CustomerData\JsLayoutDataProviderPoolInterface">
  21. <arguments>
  22. <argument name="jsLayoutDataProviders" xsi:type="array">
  23. <item name="checkout_totals" xsi:type="object">Magento\Tax\CustomerData\CheckoutTotalsJsLayoutDataProvider</item>
  24. </argument>
  25. </arguments>
  26. </type>
  27. <type name="Magento\Checkout\Model\CompositeConfigProvider">
  28. <arguments>
  29. <argument name="configProviders" xsi:type="array">
  30. <item name="tax_config_provider" xsi:type="object">Magento\Tax\Model\TaxConfigProvider</item>
  31. </argument>
  32. </arguments>
  33. </type>
  34. <type name="Magento\Framework\View\Layout">
  35. <plugin name="tax-session-depersonalize"
  36. type="Magento\Tax\Model\Layout\DepersonalizePlugin" sortOrder="20"/>
  37. </type>
  38. <type name="Magento\Framework\App\Action\AbstractAction">
  39. <plugin name="tax-app-action-dispatchController-context-plugin"
  40. type="Magento\Tax\Model\App\Action\ContextPlugin"/>
  41. </type>
  42. </config>