Execute arbitrary PHP code during installation, update and uninstallation of the package.
application attribute must have the same value as the
application attribute of the
file package installation plugin instruction so that the correct file in the intended application directory is executed.
For further information about the
application attribute, refer to its documentation on the acpTemplate package installation plugin page.
script-PIP expects a relative path to a
The PHP script is deployed by using the file package installation plugin. To prevent it from colliding with other install script (remember: You cannot overwrite files created by another plugin), we highly recommend to make use of these naming conventions:
<targetVersion> equals the version number of the current package being installed.
If you’re updating from
<targetVersion> should read
The script is included using
include() within ScriptPackageInstallationPlugin::run().
This grants you access to the class members, including
You can retrieve the package id of the current package through