ResponseSendingEvent
Emitted by Context::handle() once the pipeline has produced a response, just before it is returned to the runtime for emission.
The last hook that sees the full request + response together.
Synopsis
Section titled “Synopsis”final class ResponseSendingEvent extends Event
| Extends | Event |
| Source | Event/Lifecycle/ResponseSendingEvent.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$request | ServerRequestInterface | readonly. |
$response | ResponseInterface | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(ServerRequestInterface $request, ResponseInterface $response): mixed
| Parameter | Type | Description |
|---|---|---|
$request | ServerRequestInterface | |
$response | ResponseInterface |
Returns mixed