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

Public Member Functions

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

Protected Attributes

SiteMatcher $matcher
 

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 ( SiteMatcher  $matcher)

Member Function Documentation

◆ process()

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

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

Parameters
ServerRequestInterface$request
RequestHandlerInterface$handler
Returns
‪ResponseInterface

Definition at line 54 of file SiteResolver.php.

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

Member Data Documentation

◆ $matcher

SiteMatcher TYPO3\CMS\Frontend\Middleware\SiteResolver::$matcher
protected