SlimCsrfProvider implements CsrfProviderInterface
Slim Csrf Provider Class.
Table of Contents
setupService() | Setup the CSRF service. | Guard |
---|---|---|
registerMiddleware() | Register middleware. | mixed |
Methods
setupService()
Setup the CSRF service.
public
static setupService(
$ci :
ContainerInterface
)
: Guard
Returns the CSRF Guard which will be added to the app later.
Parameters
- $ci : ContainerInterface
Return values
GuardregisterMiddleware()
Register middleware.
public
static registerMiddleware(
$app :
App
, $request :
ServerRequestInterface
, $guard :
mixed
)
: mixed
Add the guard to the app as a middleware.
Parameters
- $app : App
- $request : ServerRequestInterface
- $guard : mixed