appv2 resources: document the fact that the apt resource may create a phpversion setting when the dependencies contain php packages

This commit is contained in:
Alexandre Aubin 2023-02-03 02:41:28 +01:00
parent 13d4e16e7d
commit 2107a84852

View file

@ -703,6 +703,7 @@ class AptDependenciesAppResource(AppResource):
##### Provision/Update:
- The code literally calls the bash helpers `ynh_install_app_dependencies` and `ynh_install_extra_app_dependencies`, similar to what happens in v1.
- Note that when `packages` contains some phpX.Y-foobar dependencies, this will automagically define a `phpversion` setting equal to `X.Y` which can therefore be used in app scripts ($phpversion) or templates (`__PHPVERSION__`)
##### Deprovision:
- The code literally calls the bash helper `ynh_remove_app_dependencies`