Review main Merged Breaking

73058[!!!][FEATURE] New Module Registration API

Oli Bartsch CR +2 V +2 Nightmare +3236 −3093 updated 02/07/22, 09:29

Commit message

This change introduces a new way to register
TYPO3 Backend Modules.

Each module is now registered during build-time
in a dedicated registry. Therefore, The registration
is moved from ext_tables.php to the
Configuration/Backend/Modules.php file.

Accessing the registered modules can be done via
a central API, the ModuleProvider class. This class
takes care of access permissions and further
processing (e.g. module menu generation).

$GLOBALS[TBE_MODULES] is fully removed as no sane
backwards-compatibility (for a use-case) is available.

A new PSR-14 event BeforeModuleCreationEvent is added,
which allows to manipulate a module configuration, before
it is used to create and register the module.

Existing registrations do no longer work. However, to support
extenion authors in maintaining multiple versions, the previously
used API methods (e.g. `addModule` and `registerModule`) will
stay until TYPO3 v13.0. No trigger_error() is used, so extension
authors use the Extension Scanner to detect usages.

Executed commands:

   composer u typo3/cms-styleguide

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 121

Show 101 more files