ResponseEvent
FinalYes
Event dispatched when a successful response is ready to be sent to the client.
Listeners can modify the response before it's sent.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- getMethod() : string
- getRequest() : Request
- getResponse() : Response<string|int, mixed>
- getSession() : SessionInterface
- setResponse() : void
Properties
$request read-only
private
Request
$request
$response
private
Response
$response
$session read-only
private
SessionInterface
$session
Methods
__construct()
public
__construct(Response<string|int, mixed> $response, Request $request, SessionInterface $session) : mixed
Parameters
- $response : Response<string|int, mixed>
- $request : Request
- $session : SessionInterface
getMethod()
public
getMethod() : string
Return values
stringgetRequest()
public
getRequest() : Request
Return values
RequestgetResponse()
public
getResponse() : Response<string|int, mixed>
Return values
Response<string|int, mixed>getSession()
public
getSession() : SessionInterface
Return values
SessionInterfacesetResponse()
public
setResponse(Response<string|int, mixed> $response) : void
Parameters
- $response : Response<string|int, mixed>