[FEATURE] Add aliases to Backend Routes and Modules
Symfony 5.4 ships with a new feature to add "aliases" to routes. TYPO3 can now replace legacy and complicated names for routes or modules with new ones while keeping backwards-compatibility with old links / references. See https://symfony.com/blog/new-in-symfony-5-4-route-aliasing for more details. Module registration now allows to define "aliases" (array), same for route registration. As an example, complicated module name such as "web_WorkspacesWorkspaces" is renamed to "workspaces_admin" which reflects the current possibilities for module identifiers much better. An upgrade wizard migrates the current backend user and backend group permissions ("userMods" and "groupMods") to the new logic. Resolves: #96515 Releases: main Change-Id: I3c6c9a3be3fddabe2910df4890528cc4f85a4586 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72960 Tested-by:Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/TypeScript/workspaces/backend.ts 3 additions, 3 deletionsBuild/Sources/TypeScript/workspaces/backend.ts
- Build/Sources/TypeScript/workspaces/toolbar/workspaces-menu.ts 5 additions, 7 deletions.../Sources/TypeScript/workspaces/toolbar/workspaces-menu.ts
- typo3/sysext/backend/Classes/Module/BaseModule.php 9 additions, 0 deletionstypo3/sysext/backend/Classes/Module/BaseModule.php
- typo3/sysext/backend/Classes/Module/MenuModule.php 5 additions, 0 deletionstypo3/sysext/backend/Classes/Module/MenuModule.php
- typo3/sysext/backend/Classes/Module/ModuleFactory.php 31 additions, 0 deletionstypo3/sysext/backend/Classes/Module/ModuleFactory.php
- typo3/sysext/backend/Classes/Module/ModuleInterface.php 5 additions, 0 deletionstypo3/sysext/backend/Classes/Module/ModuleInterface.php
- typo3/sysext/backend/Classes/Module/ModuleRegistry.php 29 additions, 2 deletionstypo3/sysext/backend/Classes/Module/ModuleRegistry.php
- typo3/sysext/backend/Classes/Routing/Router.php 6 additions, 2 deletionstypo3/sysext/backend/Classes/Routing/Router.php
- typo3/sysext/backend/Classes/ServiceProvider.php 6 additions, 4 deletionstypo3/sysext/backend/Classes/ServiceProvider.php
- typo3/sysext/backend/Tests/Functional/Routing/RouterTest.php 15 additions, 0 deletionstypo3/sysext/backend/Tests/Functional/Routing/RouterTest.php
- typo3/sysext/backend/Tests/Functional/Routing/UriBuilderTest.php 40 additions, 0 deletions...ysext/backend/Tests/Functional/Routing/UriBuilderTest.php
- typo3/sysext/backend/Tests/Unit/Module/ModuleFactoryTest.php 132 additions, 0 deletionstypo3/sysext/backend/Tests/Unit/Module/ModuleFactoryTest.php
- typo3/sysext/backend/Tests/Unit/Module/ModuleRegistryTest.php 20 additions, 3 deletions...3/sysext/backend/Tests/Unit/Module/ModuleRegistryTest.php
- typo3/sysext/core/Documentation/Changelog/12.0/Feature-96515-AliasesForBackendRoutesAndBackendModules.rst 61 additions, 0 deletions...eature-96515-AliasesForBackendRoutesAndBackendModules.rst
- typo3/sysext/core/Documentation/Changelog/12.0/Feature-96733-NewBackendModuleRegistrationAPI.rst 10 additions, 0 deletions...og/12.0/Feature-96733-NewBackendModuleRegistrationAPI.rst
- typo3/sysext/install/Classes/Updates/BackendModulePermissionMigration.php 123 additions, 0 deletions...tall/Classes/Updates/BackendModulePermissionMigration.php
- typo3/sysext/install/Classes/Updates/ShortcutRecordsMigration.php 6 additions, 2 deletions...sext/install/Classes/Updates/ShortcutRecordsMigration.php
- typo3/sysext/install/Tests/Functional/Updates/BackendModulePermissionMigrationTest.php 49 additions, 0 deletions...nctional/Updates/BackendModulePermissionMigrationTest.php
- typo3/sysext/install/Tests/Functional/Updates/Fixtures/BackendModulePermissionMigrationAfter.csv 16 additions, 0 deletions...pdates/Fixtures/BackendModulePermissionMigrationAfter.csv
- typo3/sysext/install/Tests/Functional/Updates/Fixtures/BackendModulePermissionMigrationBefore.csv 16 additions, 0 deletions...dates/Fixtures/BackendModulePermissionMigrationBefore.csv
Please register or sign in to comment