Feature #99302
Updated by Mario Lubenka almost 2 years ago
Right now @InstallUtility::install@ triggers a AfterPackageActivationEvent for each extension after @processExtensionSetup@ ran. In Composer Mode, For Composer-based installations the CLI command @extension:setup@ is used to ensure extensions are ready for use. In this case, there currently is (@SetupExtensionsCommand@) calls @InstallUtility::processExtensionSetup@, and triggers no event triggered, as @InstallUtility::processExtensionSetup@ is called directly. Triggering the @AfterPackageActivationEvent@ does not make sense in this context, since Composer packages are always active. event. However, some Some extensions may need so do additional stuff in order to be usable, (e.g. set up additional files in other places placed than "fileadmin"). That's why I'd like to have a new event @AfterPackageSetupEvent@ (similar to @AfterPackageActivationEvent@), which is executed at the end of @InstallUtility::processExtensionSetup@. Extensions can listen to that event and run the actions they need to do. Also it will work for both Composer and Non-Composer mode, further improving the idea of the command @extension:setup@ to set up all extensions.