core
core copied to clipboard
[Extensions] Need to be Able to Set the "weight" of Dependencies During a Module Installation
Using Zikula 1.4.0 build 182.
The issue is that there isn't a "weight" to set the order in which dependencies are installed when a module is installed.
The "weight" should be available in the "dependencies" array of the "getMetaData()" function in the file:
ExampleModuleVersion.php
So, the can allow the install() function of the module to properly use ModUtil::available(), calling to the dependency.
Can you please elaborate on the use case for which this is required?
@Guite While installing a module, if I need to write to a table that is associated with a dependency, I need to make sure that the dependency is already installed and active. So, by setting the "weight" of the dependency, that ensure that modules get installed in a desired order.
refs https://github.com/zikula/core/issues/3438 https://github.com/zikula/core/issues/249
Closing as dependency will be handled entirely by Composer in 4.0+.