Method | 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. | |
inputName ( string $inputName ) : self | Set the field name. | |
max ( integer $seconds ) : self | Max time before expire the form. | |
min ( integer $seconds ) : self | Minimum time required. |
Method | Description | |
---|---|---|
isValid ( Psr\Http\Message\ServerRequestInterface $request ) : boolean | Check whether the request is valid. |
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 | |
return | Psr\Http\Message\ResponseInterface |
public static getGenerator ( Psr\Http\Message\ServerRequestInterface $request ) : callable | null | ||
$request | Psr\Http\Message\ServerRequestInterface | |
return | callable | null |