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
Properties
- $currentRequest : ServerRequestInterface|null
Methods
- __construct() : mixed
- process() : ResponseInterface
Properties
$currentRequest
        public
            ServerRequestInterface|null
    $currentRequest
     = null
    
    
    
                        Methods
__construct()
    public
                    __construct(AccessStorage $storage, SudoModeController $controller, ServerRequestFactoryInterface $serverRequestFactory, Application $application) : mixed
    Parameters
- $storage : AccessStorage
- $controller : SudoModeController
- $serverRequestFactory : ServerRequestFactoryInterface
- $application : Application
process()
    public
                    process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
    Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface