public emit ( Psr\Http\Message\ResponseInterface $response ) | ||
$response | Psr\Http\Message\ResponseInterface |
public function emit(ResponseInterface $response);
/** * @param \Psr\Http\Message\ServerRequestInterface $request * @param \Psr\Http\Message\ResponseInterface $response * @param callable $next */ public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) { if (headers_sent() === false || $this->checkOutputStart === false) { $this->emitter->emit($response); } $next(); }