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

Public Member Functions

 __construct (SiteMatcher $matcher=null)
 
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 34 of file SiteResolver.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\SiteResolver::__construct ( SiteMatcher  $matcher = null)

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 55 of file SiteResolver.php.

References $GLOBALS.

Member Data Documentation

◆ $matcher

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