di.xml 1.31 KB
Newer Older
Ketan's avatar
Ketan committed
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
<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Magento\InventorySourceSelectionApi\Api\GetSourceSelectionAlgorithmListInterface"
                type="Magento\InventorySourceSelectionApi\Model\GetSourceSelectionAlgorithmList"/>
    <preference for="Magento\InventorySourceSelectionApi\Api\SourceSelectionServiceInterface"
                type="Magento\InventorySourceSelectionApi\Model\SourceSelectionService"/>

    <type name="Magento\InventorySourceSelectionApi\Model\GetSourceSelectionAlgorithmList">
        <arguments>
            <argument name="availableAlgorithms" xsi:type="array">
                <item name="priority" xsi:type="array">
                    <item xsi:type="string" name="code">priority</item>
                    <item xsi:type="string" name="title" translatable="true">Source Priority</item>
                    <item xsi:type="string" name="description" translatable="true">Algorithm which provides Source Selections based on predefined priority of Source</item>
                </item>
            </argument>
        </arguments>
    </type>
</config>