메소드 | 설명 | |
---|---|---|
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | Example middleware invokable class |
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | ||
$request | Psr\Http\Message\ServerRequestInterface | PSR7 request |
$response | Psr\Http\Message\ResponseInterface | PSR7 response |
$next | callable | Next middleware |
리턴 | Psr\Http\Message\ResponseInterface |