GetResponseForControllerResultEvent
class GetResponseForControllerResultEvent extends GetResponseEvent
Allows to create a response for the return value of a controller.
Call setResponse() to set the response that will be returned for the current request. The propagation of this event is stopped as soon as a response is set.
Methods
__construct(HttpKernelInterface $kernel, Request $request, int|null $requestType, $controllerResult)
No description
mixed
getControllerResult()
Returns the return value of the controller.
setControllerResult(mixed $controllerResult)
Assigns the return value of the controller.
Details
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().