PHP Class Zend\Stratigility\NoopFinalHandler

Show file Open project: zendframework/zend-stratigility

Public Methods

Method Description
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response ) : Psr\Http\Message\ResponseInterface Final handler for all requests.

Method Details

__invoke() public method

This handler should only ever be invoked if Next exhausts its stack. When that happens, it returns the response provided during invocation.
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface Request instance.
$response Psr\Http\Message\ResponseInterface Response instance.
return Psr\Http\Message\ResponseInterface