[TASK] Centralize sys_domain resolving
Core provides various places to either retrieve the pageId of a sys_domain record, or to find out the root page ID given a request (previously domain + path). However, due to the inclusion of symfony/routing, the detection can now be handled by this new component. For this purpose, a new class LegacyDomainResolver is introduced (internal) which utilizes symfony/routing under the hood and does proper caching. This way, the following methods can be deprecated: - TypoScriptFrontendController->domainNameMatchesCurrentRequest() - TypoScriptFrontendController->getDomainDataForPid() - BackendUtility::getDomainStartPage() - BackendUtility::firstDomainRecord() This is a precursor for fetching all sys_domain data, to minimize the efforts later-on to wrap the LegacyDomainResolver into a proper Router, and also to build pseudo-sites on top. Resolves: #85892 Releases: master Change-Id: I831d33ac06f090cbe4d2a16e592549739489f99a Reviewed-on: https://review.typo3.org/57949 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 24 additions, 30 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-85892-VariousMethodsRegardingSysDomainResolving.rst 43 additions, 0 deletions...ation-85892-VariousMethodsRegardingSysDomainResolving.rst
- typo3/sysext/frontend/Classes/Compatibility/LegacyDomainResolver.php 282 additions, 0 deletions...t/frontend/Classes/Compatibility/LegacyDomainResolver.php
- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php 9 additions, 76 deletions...ntend/Classes/Controller/TypoScriptFrontendController.php
- typo3/sysext/frontend/Classes/Middleware/SiteResolver.php 3 additions, 74 deletionstypo3/sysext/frontend/Classes/Middleware/SiteResolver.php
- typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php 7 additions, 5 deletionstypo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php
- typo3/sysext/frontend/Tests/Functional/Controller/TypoScriptFrontendControllerTest.php 0 additions, 78 deletions...unctional/Controller/TypoScriptFrontendControllerTest.php
- typo3/sysext/frontend/Tests/Unit/Compatibility/LegacyDomainResolverTest.php 103 additions, 0 deletions...end/Tests/Unit/Compatibility/LegacyDomainResolverTest.php
- typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php 0 additions, 58 deletions...ests/Unit/Controller/TypoScriptFrontendControllerTest.php
- typo3/sysext/frontend/Tests/UnitDeprecated/Controller/TypoScriptFrontendControllerTest.php 96 additions, 0 deletions...eprecated/Controller/TypoScriptFrontendControllerTest.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php 14 additions, 0 deletions.../Configuration/ExtensionScanner/Php/MethodCallMatcher.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php 14 additions, 0 deletions...guration/ExtensionScanner/Php/MethodCallStaticMatcher.php
Please register or sign in to comment