OnPackageInstall
Last updated Mar 11th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$306 per month—let's make that $500!
Learn moreFired after a package is successfully installed via the package manager. Added in MODX Revolution 2.6.
Available Variables¶
-
$package
: the modTransportPackage instance that was installed. For example$package->get('package_name')
to get the name of the package. -
$action
: one ofxPDOTransport::ACTION_UPGRADE
orxPDOTransport::ACTION_INSTALL
to indicate if it was the first install, or an upgrade.
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$306 per month—let's make that $500!
Learn more