di.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. <!-- Buttons configurations -->
  10. <type name="Magento\InventoryShippingAdminUi\Ui\Component\Control\SourceSelection\AlgorithmSelectionButton">
  11. <arguments>
  12. <argument name="targetName" xsi:type="string">inventory_shipping_source_selection_form.inventory_shipping_source_selection_form</argument>
  13. </arguments>
  14. </type>
  15. <type name="Magento\Sales\Block\Adminhtml\Order\Invoice\Create\Form">
  16. <plugin name="disallow_create_shipment_in_multi_source_mode" type="Magento\InventoryShippingAdminUi\Plugin\Sales\Block\Order\Invoice\Create\DisallowCreateShipmentPlugin"/>
  17. </type>
  18. <type name="Magento\Shipping\Controller\Adminhtml\Order\Shipment\NewAction">
  19. <arguments>
  20. <argument name="shipmentProvider" xsi:type="object">Magento\InventoryShippingAdminUi\Model\ShipmentProvider</argument>
  21. </arguments>
  22. </type>
  23. <type name="Magento\Shipping\Block\Adminhtml\Create">
  24. <plugin name="back_button_url" type="Magento\InventoryShippingAdminUi\Plugin\Sales\Block\Shipment\BackButtonUrlOnNewShipmentPagePlugin"/>
  25. </type>
  26. <type name="Magento\InventoryShippingAdminUi\Controller\Adminhtml\SourceSelection\ProcessAlgorithm">
  27. <arguments>
  28. <!-- @deprecated parameter stockByWebsiteIdResolver has been deprecated and not in use now -->
  29. <argument name="stockByWebsiteIdResolver" xsi:type="null"/>
  30. <!-- @deprecated parameter inventoryRequestFactory has been deprecated and not in use now -->
  31. <argument name="inventoryRequestFactory" xsi:type="null"/>
  32. </arguments>
  33. </type>
  34. <type name="Magento\InventoryShippingAdminUi\Ui\DataProvider\SourceSelectionDataProvider">
  35. <arguments>
  36. <!-- @deprecated parameter getSourcesByStockIdSkuAndQty has been deprecated and not in use now -->
  37. <argument name="getSourcesByStockIdSkuAndQty" xsi:type="null"/>
  38. </arguments>
  39. </type>
  40. </config>