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
Methods
- __construct() : mixed
- process() : ResponseInterface
- Resolve the site/language information by checking the page ID or the URL.
Properties
$matcher
protected
SiteMatcher
$matcher
Methods
__construct()
public
__construct(SiteMatcher $matcher) : mixed
Parameters
- $matcher : SiteMatcher
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