[TASK] Move domainStartPage setting to PageResolver
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Middleware / SiteResolver.php
index 4e4ca4d..5a3608a 100644 (file)
@@ -23,7 +23,6 @@ use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
 use TYPO3\CMS\Core\Routing\SiteMatcher;
 use TYPO3\CMS\Core\Site\Entity\PseudoSite;
 use TYPO3\CMS\Core\Site\Entity\Site;
-use TYPO3\CMS\Core\Site\Entity\SiteInterface;
 use TYPO3\CMS\Core\Site\Entity\SiteLanguage;
 use TYPO3\CMS\Core\Site\SiteFinder;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
@@ -96,11 +95,6 @@ class SiteResolver implements MiddlewareInterface
             $GLOBALS['TYPO3_REQUEST'] = $request;
         }
 
-        // Now resolve the root page of the site, the page_id of the current domain
-        if ($site instanceof SiteInterface) {
-            $GLOBALS['TSFE']->domainStartPage = $site->getRootPageId();
-        }
-
         return $handler->handle($request);
     }