di.xml 1.3 KB

1234567891011121314151617181920212223242526
  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\GetSourceSelectionAlgorithmListInterface"
  11. type="Magento\InventorySourceSelectionApi\Model\GetSourceSelectionAlgorithmList"/>
  12. <preference for="Magento\InventorySourceSelectionApi\Api\SourceSelectionServiceInterface"
  13. type="Magento\InventorySourceSelectionApi\Model\SourceSelectionService"/>
  14. <type name="Magento\InventorySourceSelectionApi\Model\GetSourceSelectionAlgorithmList">
  15. <arguments>
  16. <argument name="availableAlgorithms" xsi:type="array">
  17. <item name="priority" xsi:type="array">
  18. <item xsi:type="string" name="code">priority</item>
  19. <item xsi:type="string" name="title" translatable="true">Source Priority</item>
  20. <item xsi:type="string" name="description" translatable="true">Algorithm which provides Source Selections based on predefined priority of Source</item>
  21. </item>
  22. </argument>
  23. </arguments>
  24. </type>
  25. </config>