PHP Class Symfony\Component\HttpKernel\Event\GetResponseEvent

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.
Inheritance: extends KernelEvent
显示文件 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
getResponse ( ) : Response Returns the response object
hasResponse ( ) : boolean Returns whether a response was set
setResponse ( Response $response ) Sets a response and stops event propagation

Method Details

getResponse() public method

Returns the response object
public getResponse ( ) : Response
return Symfony\Component\HttpFoundation\Response

hasResponse() public method

Returns whether a response was set
public hasResponse ( ) : boolean
return boolean Whether a response was set

setResponse() public method

Sets a response and stops event propagation
public setResponse ( Response $response )
$response Symfony\Component\HttpFoundation\Response