core icon indicating copy to clipboard operation
core copied to clipboard

[Extensions] Need to be Able to Set the "weight" of Dependencies During a Module Installation

Open shefik opened this issue 11 years ago • 4 comments

Using Zikula 1.4.0 build 182.

shefik avatar Sep 14 '14 02:09 shefik

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.

shefik avatar Sep 14 '14 02:09 shefik

Can you please elaborate on the use case for which this is required?

Guite avatar Sep 14 '14 11:09 Guite

@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.

shefik avatar Sep 15 '14 17:09 shefik

refs https://github.com/zikula/core/issues/3438 https://github.com/zikula/core/issues/249

craigh avatar Mar 31 '17 00:03 craigh

Closing as dependency will be handled entirely by Composer in 4.0+.

Guite avatar Aug 14 '22 14:08 Guite