[!!!][FEATURE] New Module Registration API
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 Resolves: #96733 Releases: main Change-Id: I07f4bc417e6effb1215cf0e373cc60f2b13ba8ad Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73058 Tested-by:core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 30 deletionsBuild/phpstan/phpstan-baseline.neon
- composer.lock 6 additions, 6 deletionscomposer.lock
- typo3/sysext/backend/Classes/Backend/Shortcut/ShortcutRepository.php 10 additions, 24 deletions...t/backend/Classes/Backend/Shortcut/ShortcutRepository.php
- typo3/sysext/backend/Classes/Backend/ToolbarItems/HelpToolbarItem.php 17 additions, 12 deletions.../backend/Classes/Backend/ToolbarItems/HelpToolbarItem.php
- typo3/sysext/backend/Classes/Backend/ToolbarItems/LiveSearchToolbarItem.php 10 additions, 9 deletions...nd/Classes/Backend/ToolbarItems/LiveSearchToolbarItem.php
- typo3/sysext/backend/Classes/Backend/ToolbarItems/UserToolbarItem.php 4 additions, 7 deletions.../backend/Classes/Backend/ToolbarItems/UserToolbarItem.php
- typo3/sysext/backend/Classes/Controller/AboutController.php 10 additions, 50 deletionstypo3/sysext/backend/Classes/Controller/AboutController.php
- typo3/sysext/backend/Classes/Controller/BackendController.php 22 additions, 42 deletions...3/sysext/backend/Classes/Controller/BackendController.php
- typo3/sysext/backend/Classes/Controller/PageLayoutController.php 10 additions, 24 deletions...ysext/backend/Classes/Controller/PageLayoutController.php
- typo3/sysext/backend/Classes/Controller/ShortcutController.php 2 additions, 19 deletions.../sysext/backend/Classes/Controller/ShortcutController.php
- typo3/sysext/backend/Classes/Domain/Model/Module/BackendModule.php 0 additions, 278 deletions...ext/backend/Classes/Domain/Model/Module/BackendModule.php
- typo3/sysext/backend/Classes/Domain/Repository/Module/BackendModuleRepository.php 0 additions, 374 deletions...sses/Domain/Repository/Module/BackendModuleRepository.php
- typo3/sysext/backend/Classes/Domain/Repository/TableManualRepository.php 13 additions, 12 deletions...ckend/Classes/Domain/Repository/TableManualRepository.php
- typo3/sysext/backend/Classes/Http/RouteDispatcher.php 17 additions, 26 deletionstypo3/sysext/backend/Classes/Http/RouteDispatcher.php
- typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php 17 additions, 18 deletions...backend/Classes/Middleware/BackendRouteInitialization.php
- typo3/sysext/backend/Classes/Module/BaseModule.php 238 additions, 0 deletionstypo3/sysext/backend/Classes/Module/BaseModule.php
- typo3/sysext/backend/Classes/Module/BeforeModuleCreationEvent.php 58 additions, 0 deletions...sext/backend/Classes/Module/BeforeModuleCreationEvent.php
- typo3/sysext/backend/Classes/Module/ExtbaseModule.php 89 additions, 0 deletionstypo3/sysext/backend/Classes/Module/ExtbaseModule.php
- typo3/sysext/backend/Classes/Module/MenuModule.php 179 additions, 0 deletionstypo3/sysext/backend/Classes/Module/MenuModule.php
- typo3/sysext/backend/Classes/Module/Module.php 54 additions, 0 deletionstypo3/sysext/backend/Classes/Module/Module.php
Please register or sign in to comment