LazyResponseEvent
extends RequestEvent
in package
FinalYes
Wraps a lazily computed response in a signaling exception.
Tags
Table of Contents
Properties
- $event : parent
- $kernel : mixed
- $propagationStopped : bool
- $request : mixed
- $requestType : int|null
- $response : mixed
Methods
- __construct() : mixed
- getKernel() : HttpKernelInterface
- {@inheritdoc}
- getRequest() : Request
- {@inheritdoc}
- getRequestType() : int
- {@inheritdoc}
- getResponse() : Response|null
- Returns the response object.
- hasResponse() : bool
- Returns whether a response was set.
- isMainRequest() : bool
- {@inheritdoc}
- isPropagationStopped() : bool
- Is propagation stopped?
- setResponse() : mixed
- Sets a response and stops event propagation.
- stopPropagation() : void
- Stops the propagation of the event to further event listeners.
Properties
$event
private
parent
$event
$kernel
private
mixed
$kernel
$propagationStopped
private
bool
$propagationStopped
= false
$request
private
mixed
$request
$requestType
private
int|null
$requestType
$response
private
mixed
$response
= null
Methods
__construct()
public
__construct(parent $event) : mixed
Parameters
- $event : parent
getKernel()
{@inheritdoc}
public
getKernel() : HttpKernelInterface
Return values
HttpKernelInterfacegetRequest()
{@inheritdoc}
public
getRequest() : Request
Return values
RequestgetRequestType()
{@inheritdoc}
public
getRequestType() : int
Return values
intgetResponse()
Returns the response object.
public
getResponse() : Response|null
Return values
Response|nullhasResponse()
Returns whether a response was set.
public
hasResponse() : bool
Return values
boolisMainRequest()
{@inheritdoc}
public
isMainRequest() : bool
Return values
boolisPropagationStopped()
Is propagation stopped?
public
isPropagationStopped() : bool
Return values
bool —True if the Event is complete and no further listeners should be called. False to continue calling listeners.
setResponse()
Sets a response and stops event propagation.
public
setResponse(Response $response) : mixed
Parameters
- $response : Response
stopPropagation()
Stops the propagation of the event to further event listeners.
public
stopPropagation() : void
If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().