Magento – Magento 2 module still working after dependent module is getting disabled

dependencymagento-2.0magento2

I'm trying to make a depend module A to module B using tag in module's config file. But if I disabling module B, module A is still working. How one can fully define dependency in Magento 2?

In general:
what is the difference between "Soft Dependency" and "Hard Dependency" in Magento 2?

Best Answer

In module.xml you can define only sequence of module loading, not dependencies of modules.

Dependencies of modules are defined in composer.json. Hard in section require, soft in section suggest

See Magento 2 official documentation for more info.

Related Topic