2

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

1 Answer 1

2

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 and acknowledge you have read our privacy policy.

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