In the package installation script, preflight method, is there a way to access the package's XML? If so, how?

1 Answer 1


Yes, you can. The preflight method has two parameters, and you can, for example, obtain the current version being installed with:

function preflight($type, $parent) {
    $version = (string) $parent->getManifest()->version;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.