‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Middleware\SiteResolver Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Middleware\SiteResolver:

Public Member Functions

 __construct (protected readonly SiteMatcher $matcher)
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)

Detailed Description

Identifies if a site is configured for the request, based on "id" and "L" GET/POST parameters, or the requested string.

If a site is found, the request is populated with the found language+site objects. If none is found, the main magic is handled by the PageResolver middleware.

Definition at line 36 of file SiteResolver.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\SiteResolver::__construct ( protected readonly SiteMatcher  $matcher)

Definition at line 38 of file SiteResolver.php.

Member Function Documentation

◆ process()

TYPO3\CMS\Frontend\Middleware\SiteResolver::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler 

Resolve the site/language information by checking the page ID or the URL.

Definition at line 43 of file SiteResolver.php.

References TYPO3\CMS\Core\Localization\Locales\setSystemLocaleFromSiteLanguage().