Skip to content
Snippets Groups Projects
Commit f7b39fcd authored by Sean Madsen's avatar Sean Madsen
Browse files

Add example of XML for extension dependencies

parent 4528bc38
No related branches found
No related tags found
No related merge requests found
...@@ -263,6 +263,16 @@ Attributes acceptable for `<psr4>` ...@@ -263,6 +263,16 @@ Attributes acceptable for `<psr4>`
* Containing element: [`<extension>`](#extension) * Containing element: [`<extension>`](#extension)
* Description: Used to to specify other extensions on which this extension is dependent. * Description: Used to to specify other extensions on which this extension is dependent.
* Contains: elements * Contains: elements
* Example:
```xml
<extension key="org.civicrm.foo" type="module">
<requires>
<ext>org.civicrm.bar</ext>
</requires>
</extension>
```
* Notes: * Notes:
* For example if `org.civicrm.foo` requires `org.civicrm.bar`, then CiviCRM core will not enable `org.civicrm.foo` unless it can enable `org.civicrm.bar` _first_. * For example if `org.civicrm.foo` requires `org.civicrm.bar`, then CiviCRM core will not enable `org.civicrm.foo` unless it can enable `org.civicrm.bar` _first_.
* Also, if `org.civicrm.bar` depends on other extensions, the process will continue recursively, always by enabling the dependencies first. * Also, if `org.civicrm.bar` depends on other extensions, the process will continue recursively, always by enabling the dependencies first.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment