di.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334
  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"
  9. xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  10. <preference for="Magento\InventorySourceSelectionApi\Api\Data\InventoryRequestInterface"
  11. type="Magento\InventorySourceSelection\Model\Request\InventoryRequest"/>
  12. <preference for="Magento\InventorySourceSelectionApi\Api\Data\ItemRequestInterface"
  13. type="Magento\InventorySourceSelection\Model\Request\ItemRequest"/>
  14. <preference for="Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionAlgorithmInterface"
  15. type="Magento\InventorySourceSelection\Model\SourceSelectionAlgorithm"/>
  16. <preference for="Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionItemInterface"
  17. type="Magento\InventorySourceSelection\Model\Result\SourceSelectionItem"/>
  18. <preference for="Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionResultInterface"
  19. type="Magento\InventorySourceSelection\Model\Result\SourceSelectionResult"/>
  20. <preference for="Magento\InventorySourceSelectionApi\Api\GetDefaultSourceSelectionAlgorithmCodeInterface"
  21. type="Magento\InventorySourceSelection\Model\GetDefaultSourceSelectionAlgorithmCode"/>
  22. <preference for="Magento\InventorySourceSelectionApi\Api\Data\AddressInterface"
  23. type="Magento\InventorySourceSelection\Model\Address"/>
  24. <type name="Magento\InventorySourceSelectionApi\Model\SourceSelectionService">
  25. <arguments>
  26. <argument name="sourceSelectionMethods" xsi:type="array">
  27. <item name="priority"
  28. xsi:type="string">Magento\InventorySourceSelection\Model\Algorithms\PriorityBasedAlgorithm</item>
  29. </argument>
  30. </arguments>
  31. </type>
  32. </config>