SiteResolver implements MiddlewareInterface

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.

Table of Contents

Interfaces

MiddlewareInterface

Methods

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

Methods

process()

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

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

        
On this page

Search results