CsrfMiddleware
in package
implements
MiddlewareInterface
Read onlyYes
FinalYes
Table of Contents
Interfaces
Properties
- $csrfTokenService : CsrfTokenService
- $logger : LoggerInterface
- $requestContext : RequestContext
Methods
- __construct() : mixed
- handle() : ResponseInterface
Properties
$csrfTokenService
private
CsrfTokenService
$csrfTokenService
$logger
private
LoggerInterface
$logger
$requestContext
private
RequestContext
$requestContext
Methods
__construct()
public
__construct(CsrfTokenService $csrfTokenService, RequestContext $requestContext, LoggerInterface $logger) : mixed
Parameters
- $csrfTokenService : CsrfTokenService
- $requestContext : RequestContext
- $logger : LoggerInterface
handle()
public
handle(ServerRequestInterface $request, callable $next) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $next : callable