class
PostResponseEvent extends KernelEvent
Allows to execute logic after a response was sent.
Since it's only triggered on master requests, the getRequestType()
method
will always return the value of HttpKernelInterface::MASTER_REQUEST
.
Methods
stopPropagation()
Stops the propagation of the event to further event listeners.
getKernel()
Returns the kernel in which this event was thrown.
getRequest()
Returns the request the kernel is currently processing.
int
getRequestType()
Returns the request type the kernel is currently processing.
getResponse()
Returns the response for which this event was thrown.
Details
bool
isPropagationStopped()
Returns whether further event listeners should be triggered.
stopPropagation()
Stops the propagation of the event to further event listeners.
If multiple event listeners are connected to the same event, no
further event listener will be triggered once any trigger calls
stopPropagation().
Returns the kernel in which this event was thrown.
Returns the request the kernel is currently processing.
int
getRequestType()
Returns the request type the kernel is currently processing.
bool
isMasterRequest()
Checks if this is a master request.
Returns the response for which this event was thrown.