UserFrosting API

CsrfProviderInterface

CSRF Provider interface.

CSRF Providers

Table of Contents

setupService() Setup the CSRF service. mixed
registerMiddleware() Register middleware. mixed

Methods

setupService()

Setup the CSRF service.

public static setupService( $ci : ContainerInterface ) : mixed

Returns the CSRF Guard which will be added to the app later.

Parameters
$ci : ContainerInterface
Return values
mixed

The csrf guard

registerMiddleware()

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
Return values
mixed

Search results