| Current Path : /home/rtorresani/www/vendor/magento/module-inventory-source-selection-api/etc/ |
| Current File : //home/rtorresani/www/vendor/magento/module-inventory-source-selection-api/etc/di.xml |
<?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"/>
<preference for="Magento\InventorySourceSelectionApi\Model\GetSourceItemQtyAvailableInterface"
type="Magento\InventorySourceSelectionApi\Model\GetSourceItemQtyAvailableService"/>
<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>
<type name="Magento\InventorySourceSelectionApi\Model\Algorithms\Result\GetDefaultSortedSourcesResult">
<arguments>
<!-- Argument searchCriteriaBuilder is deprecated and it should not be used anymore -->
<argument name="searchCriteriaBuilder" xsi:type="null" />
<!-- Argument sourceItemRepository is deprecated and it should not be used anymore -->
<argument name="sourceItemRepository" xsi:type="null" />
</arguments>
</type>
</config>