core icon indicating copy to clipboard operation
core copied to clipboard

[Extensions] Module dependencies with an or

Open phaidon opened this issue 13 years ago • 5 comments

Give the possibility to define module dependencies with or (in Version.php)

e.g. Wikula depends on Wikka or LuMicuLa.

phaidon avatar Jan 25 '12 14:01 phaidon

This already exists, e.g. https://github.com/zikula-modules/Clip/blob/master/src/modules/Clip/lib/Clip/Version.php#L67 - or am I missing something?

ghost avatar Jan 25 '12 14:01 ghost

See http://community.zikula.org/module-Forum-viewtopic-topic-58863-start-0.htm#pid262425

Guite avatar Jan 25 '12 14:01 Guite

As I understand this case is about having one mandatory dependency, but multiple available options for that.

Guite avatar Jan 25 '12 14:01 Guite

It should be like:

At least one of two modules is needed.

phaidon avatar Jan 25 '12 14:01 phaidon

@phaidon do you fancy making a PR for this?

ghost avatar Jan 25 '12 18:01 ghost

Closing as module dependencies will be replaced entirely by composer.

Guite avatar Aug 13 '22 19:08 Guite