di.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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\Framework\Url\SecurityInfo">
  10. <arguments>
  11. <argument name="secureUrlList" xsi:type="array">
  12. <item name="multishipping_checkout" xsi:type="string">/multishipping/checkout</item>
  13. </argument>
  14. </arguments>
  15. </type>
  16. <virtualType name="multishippingPaymentSpecification" type="Magento\Payment\Model\Method\Specification\Composite">
  17. <arguments>
  18. <argument name="specifications" xsi:type="array">
  19. <item name="enabled" xsi:type="string">Magento\Multishipping\Model\Payment\Method\Specification\Enabled</item>
  20. </argument>
  21. </arguments>
  22. </virtualType>
  23. <type name="Magento\Multishipping\Block\Checkout\Billing">
  24. <arguments>
  25. <argument name="paymentSpecification" xsi:type="object">multishippingPaymentSpecification</argument>
  26. </arguments>
  27. </type>
  28. <type name="Magento\Multishipping\Model\Checkout\Type\Multishipping">
  29. <arguments>
  30. <argument name="paymentSpecification" xsi:type="object">multishippingPaymentSpecification</argument>
  31. </arguments>
  32. </type>
  33. <type name="Magento\Checkout\Controller\Cart\Add">
  34. <plugin name="multishipping_disabler" type="Magento\Multishipping\Controller\Checkout\Plugin" sortOrder="50" />
  35. </type>
  36. <type name="Magento\Checkout\Controller\Cart\UpdatePost">
  37. <plugin name="multishipping_disabler" type="Magento\Multishipping\Controller\Checkout\Plugin" sortOrder="50" />
  38. </type>
  39. <type name="Magento\Checkout\Controller\Index\Index">
  40. <plugin name="multishipping_disabler" type="Magento\Multishipping\Controller\Checkout\Plugin" sortOrder="50" />
  41. </type>
  42. <type name="Magento\Checkout\Model\Cart">
  43. <plugin name="multishipping_session_mapper" type="Magento\Multishipping\Model\Checkout\Type\Multishipping\Plugin" sortOrder="50" />
  44. </type>
  45. <type name="Magento\Checkout\Controller\Cart">
  46. <plugin name="multishipping_clear_addresses" type="Magento\Multishipping\Model\Cart\Controller\CartPlugin" sortOrder="50" />
  47. </type>
  48. </config>