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

Public Member Functions

 __construct (private readonly SiteMatcher $siteMatcher)
 
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Detailed Description

Usually called after the route object is resolved, however, this is not possible yet as this happens within the RequestHandler/RouteDispatcher right now and should go away.

This middleware checks for a "id" parameter. If present, it adds a site information to this page ID.

Very useful for all "Web" related modules to resolve all available languages for a site.

Definition at line 36 of file SiteResolver.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Middleware\SiteResolver::__construct ( private readonly SiteMatcher  $siteMatcher)

Definition at line 38 of file SiteResolver.php.

Member Function Documentation

◆ process()

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

Resolve the site information by checking the page ID ("id" parameter) which is typically used in BE modules of type "web".

Definition at line 46 of file SiteResolver.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().