PHP Class Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent

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 GetResponseEvent
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Request $request, $requestType, $controllerResult )
getControllerResult ( ) : mixed Returns the return value of the controller

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Request $request, $requestType, $controllerResult )
$kernel Symfony\Component\HttpKernel\HttpKernelInterface
$request Symfony\Component\HttpFoundation\Request

getControllerResult() public method

Returns the return value of the controller
public getControllerResult ( ) : mixed
return mixed The controller return value