GetResponseEvent
class GetResponseEvent extends KernelEvent
Allows to create a response for a request.
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
from KernelEvent
Response|null
getResponse()
Returns the response object.
bool
hasResponse()
Returns whether a response was set.