AuthenticationMiddleware
in package
implements
MiddlewareInterface
Class AuthenticationMiddleware
Interfaces, Classes and Traits
- MiddlewareInterface
Table of Contents
- $authenticationService : WebRequestAuthenticationService
- $responseFactory : ResponseFactoryInterface
- __construct() : mixed
- AuthenticationMiddleware constructor.
- process() : ResponseInterface
Properties
$authenticationService
private
WebRequestAuthenticationService
$authenticationService
$responseFactory
private
ResponseFactoryInterface
$responseFactory
Methods
__construct()
AuthenticationMiddleware constructor.
public
__construct(ResponseFactoryInterface $responseFactory, WebRequestAuthenticationService $authenticationService) : mixed
Parameters
- $responseFactory : ResponseFactoryInterface
- $authenticationService : WebRequestAuthenticationService
Return values
mixed —process()
public
process(ServerRequestInterface|ServerRequest $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface|ServerRequest
- $handler : RequestHandlerInterface