Epic #83894: PSR-15 Initiative
Move rootpage resolving into PSR-15 middleware
[TASK] Move rootPage resolving into PSR-15 middleware
The functionality to resolve the "domain start page" - the page ID
where a sys_domain record is found, is moved from TSFE/sys_page
into the SiteResolver middleware, making the domain start page value
available at an earlier point of a request.
Change of behaviours:
- TSFE->domainStartPage is now filled earlier than before
- TSFE->domainStartPage is now filled regardless of access checks of the
permissions of that page record, as the check is done later-on again anyways.
For the sake of completeness:
If a site is configured, this code is not executed anymore, as the site contains
the rootpage ID already anyways.
The method "TypoScriptFrontendController->findDomainRecord"
is removed, as it was marked as private and should have not been
used outside TYPO3 Core.
The method "PageRepository->getDomainStartPage" is marked
as deprecated as it is not called anymore.
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Frans Saris <email@example.com>
Tested-by: Frans Saris <firstname.lastname@example.org>
Reviewed-by: Stefan Neufeind <email@example.com>
Tested-by: Stefan Neufeind <firstname.lastname@example.org>
Reviewed-by: Benni Mack <email@example.com>
Tested-by: Benni Mack <firstname.lastname@example.org>