Domain
in package
implements
MiddlewareInterface
Validates that access was performed by user that has access to the specified domain.
Requires domainId argument to exist in the provided ServerRequestInterface. Returns HTTP 400 if no ID was provided, HTTP 403 if access is denied or HTTP 404 if there is no object with such ID.
Tags
Interfaces, Classes and Traits
- MiddlewareInterface
Table of Contents
- REQUEST_ATTR_DOMAIN_ID = 'domainId'
- __construct() : mixed
- process() : ResponseInterface
Constants
REQUEST_ATTR_DOMAIN_ID
public
mixed
REQUEST_ATTR_DOMAIN_ID
= 'domainId'
Methods
__construct()
public
__construct(ResponseFactoryInterface $factory) : mixed
Parameters
- $factory : ResponseFactoryInterface
Return values
mixed —process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface