So far it has been possible to reload corresponding module dependencies in a module via the init method. @see ModuleManagerInterface::loadModule
Unfortunately, this can lead to side effects if the desired dependency is already loaded and possibly preconfigured by a previous module.
The current behavior would reload and also initialize the dependency. As a result, any configurations in the dependency are now obsolete.
For this reason, I would like to see a new method in the interface that only loads the corresponding dependency if it is not already loaded (ModuleManagerInterface::loadModuleIfNotLoaded)
Feature Request
Summary
So far it has been possible to reload corresponding module dependencies in a module via the init method. @see ModuleManagerInterface::loadModule
Unfortunately, this can lead to side effects if the desired dependency is already loaded and possibly preconfigured by a previous module.
The current behavior would reload and also initialize the dependency. As a result, any configurations in the dependency are now obsolete.
For this reason, I would like to see a new method in the interface that only loads the corresponding dependency if it is not already loaded (ModuleManagerInterface::loadModuleIfNotLoaded)