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
Properties
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".
Properties
$siteMatcher
        protected
            SiteMatcher
    $siteMatcher
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(SiteMatcher $siteMatcher) : mixed
    Parameters
- $siteMatcher : SiteMatcher
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