SudoModeInterceptor implements MiddlewareInterface, LoggerAwareInterface uses LoggerAwareTrait
FinalYes
Middleware that catches any `VerificationRequiredException` (= the current user must verify the access for a particular resource, route, module) by entering their password again; and any `RequestGrantedException` (= the verification process was successful & the user shall be redirected to the URI, that has been requested originally).
Table of Contents
Interfaces
- MiddlewareInterface
- LoggerAwareInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
Methods
__construct()
public
__construct(AccessStorage $storage, SudoModeController $controller) : mixed
Parameters
- $storage : AccessStorage
- $controller : SudoModeController
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface