Méthode | Description | |
---|---|---|
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | Execute the middleware. | |
get ( array $methods ) : self | Set allowed method for GET. | |
parameter ( string $name, boolean $get = true ) : self | Configure the parameters. | |
post ( array $methods ) : self | Set allowed method for POST. |
Méthode | Description | |
---|---|---|
getAllowedOverrideMethods ( Psr\Http\Message\ServerRequestInterface $request ) : array | Returns the allowed override methods. | |
getOverrideMethod ( Psr\Http\Message\ServerRequestInterface $request ) : string | Returns the override method. |
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 |