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. | |
inputClass ( string $inputClass ) : self | Set the field class. | |
inputName ( string $inputName ) : self | Set the field name. |
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 |
public inputClass ( string $inputClass ) : self | ||
$inputClass | string | |
return | self |