Méthode | Description | |
---|---|---|
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | Execute the middleware. | |
getGenerator ( Psr\Http\Message\ServerRequestInterface $request ) : callable | null | Returns a callable to generate the inputs. |
Méthode | Description | |
---|---|---|
encode ( string $value ) : string | Encode string with base64, but strip padding. | |
generateTokens ( Psr\Http\Message\ServerRequestInterface $request, string $lockTo, array &$tokens ) : string | Generate and retrieve the tokens. | |
validateRequest ( Psr\Http\Message\ServerRequestInterface $request, array &$tokens ) : boolean | Validate the request. |
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | ||
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$next | callable | |
Résultat | Psr\Http\Message\ResponseInterface |
public static getGenerator ( Psr\Http\Message\ServerRequestInterface $request ) : callable | null | ||
$request | Psr\Http\Message\ServerRequestInterface | |
Résultat | callable | null |