SiteResolver

readonly class \TYPO3\CMS\Frontend\Middleware\SiteResolver

Implements
MiddlewareInterface

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.

Table of Contents

Interfaces

MiddlewareInterface

Properties

$errorController  : ErrorController
$logger  : LoggerInterface
$matcher  : SiteMatcher

Methods

__construct()  : mixed
process()  : ResponseInterface
Resolve the site/language information by checking the page ID or the URL.

Properties

Methods

process()

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

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface

Parameters

$request : ServerRequestInterface
$handler : RequestHandlerInterface

Return values

ResponseInterface
On this page