You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we have a hard dependency of module InventoryCatalog on Inventory because of
class \Magento\InventoryCatalog\Model\SourceItem\SourceItemsSave
We use this class implementation to prevent repetitive synchronization of Legacy-MSI-Legacy update. To make this happen we add new implementation (along with one we have in Inventory Module) and disable Plugin on it
move class \Magento\InventoryCatalog\Model\SourceItem\SourceItemsSave under the same namespace where \Magento\Inventory\Model\SourceItem\Command\SourceItemsSave stored
to prevent copy-pasting and making both class to have the same logic - introduce proxy
inject this proxy in both of these classes SourceItemsSaveWithoutLegacySynchronization and SourceItemsSave and proxy method execute on the newly created class
after that change dependency of InventoryCatalog to Inventory as "soft" one
The text was updated successfully, but these errors were encountered:
Currently, we have a hard dependency of module InventoryCatalog on Inventory because of
class
\Magento\InventoryCatalog\Model\SourceItem\SourceItemsSave
We use this class implementation to prevent repetitive synchronization of Legacy-MSI-Legacy update. To make this happen we add new implementation (along with one we have in Inventory Module) and disable Plugin on it
what we need to do is:
\Magento\InventoryCatalog\Model\SourceItem\SourceItemsSave
under the same namespace where\Magento\Inventory\Model\SourceItem\Command\SourceItemsSave
storedSourceItemsSaveWithoutLegacySynchronization
andSourceItemsSave
and proxy method execute on the newly created classafter that change dependency of InventoryCatalog to Inventory as "soft" one
The text was updated successfully, but these errors were encountered: