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