Project

General

Profile

Actions

Feature #99302

open

New event "AfterExtensionSetupEvent" for improving extension setup capabilities

Added by Mario Lubenka over 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Install Tool
Start date:
2022-12-07
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Right now InstallUtility::install triggers a AfterPackageActivationEvent for each extension after processExtensionSetup ran.

In Composer Mode, the CLI command extension:setup is used to ensure extensions are ready for use.
In this case, there currently is 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.

However, some extensions may need so do additional stuff in order to be usable, (e.g. set up additional files in other places than "fileadmin").

That's why I'd like to have a new event AfterExtensionSetupEvent (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.

Actions #1

Updated by Mario Lubenka over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Mario Lubenka over 1 year ago

  • Subject changed from New event "AfterPackageSetupEvent" for improving extension setup capabilities to New event "AfterExtensionSetupEvent" for improving extension setup capabilities
  • Description updated (diff)
Actions #3

Updated by Benni Mack about 1 year ago

  • Target version changed from 12 LTS to Candidate for Major Version
Actions

Also available in: Atom PDF