[TASK] Deprecate TYPO3_mainDir
This patch deprecates the constant "TYPO3_mainDir" in favor of a BackendEntryPointResolver which contains the information in a unified way to work with the prefix for the path or URL. Some tests are adapted properly to run in "frontend context" now (e.g. felogin") to simulate the proper behavior. Resolves: #98283 Releases: main Change-Id: I8d7c410456a9fe41d220aa481032df251e949936 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75620 Tested-by:Susanne Moog <look@susi.dev> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Benjamin Franzke <bfr@qbus.de>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 10 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/adminpanel/Classes/Controller/MainController.php 0 additions, 4 deletions...3/sysext/adminpanel/Classes/Controller/MainController.php
- typo3/sysext/backend/Classes/Controller/EditDocumentController.php 6 additions, 4 deletions...ext/backend/Classes/Controller/EditDocumentController.php
- typo3/sysext/backend/Classes/Controller/LoginController.php 6 additions, 4 deletionstypo3/sysext/backend/Classes/Controller/LoginController.php
- typo3/sysext/backend/Classes/Http/Application.php 7 additions, 19 deletionstypo3/sysext/backend/Classes/Http/Application.php
- typo3/sysext/backend/Classes/Middleware/ForcedHttpsBackendRedirector.php 11 additions, 5 deletions...ckend/Classes/Middleware/ForcedHttpsBackendRedirector.php
- typo3/sysext/backend/Classes/Routing/UriBuilder.php 16 additions, 22 deletionstypo3/sysext/backend/Classes/Routing/UriBuilder.php
- typo3/sysext/backend/Classes/ServiceProvider.php 4 additions, 1 deletiontypo3/sysext/backend/Classes/ServiceProvider.php
- typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php 8 additions, 5 deletions...Template/Components/Buttons/Action/ShortcutButtonTest.php
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/RecordListCopyToClipboard.html 1 addition, 1 deletion...nctional/Template/Fixtures/RecordListCopyToClipboard.html
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/RecordListSingleTableCopyToClipboard.html 1 addition, 1 deletion...mplate/Fixtures/RecordListSingleTableCopyToClipboard.html
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/SpecialRouteIdentifierWithArgumentsCopyToClipboard.html 1 addition, 1 deletion...s/SpecialRouteIdentifierWithArgumentsCopyToClipboard.html
- typo3/sysext/backend/Tests/Unit/Routing/UriBuilderTest.php 3 additions, 2 deletionstypo3/sysext/backend/Tests/Unit/Routing/UriBuilderTest.php
- typo3/sysext/backend/Tests/Unit/View/ArrayBrowserTest.php 3 additions, 2 deletionstypo3/sysext/backend/Tests/Unit/View/ArrayBrowserTest.php
- typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php 3 additions, 1 deletion...core/Classes/Authentication/BackendUserAuthentication.php
- typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php 1 addition, 0 deletionstypo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php
- typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php 1 addition, 1 deletion...core/Classes/LinkHandling/LegacyLinkNotationConverter.php
- typo3/sysext/core/Classes/Routing/BackendEntryPointResolver.php 57 additions, 0 deletions...sysext/core/Classes/Routing/BackendEntryPointResolver.php
- typo3/sysext/core/Classes/ServiceProvider.php 6 additions, 0 deletionstypo3/sysext/core/Classes/ServiceProvider.php
- typo3/sysext/core/Configuration/Services.yaml 3 additions, 0 deletionstypo3/sysext/core/Configuration/Services.yaml
Please register or sign in to comment