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 sectionrequire
, soft in sectionsuggest
See Magento 2 official documentation for more info.