FileAccess Orion

GetResponseForControllerResultEvent extends RequestEvent
in package

Allows to create a response for a request.

Tags
deprecated

since Symfony 4.3, use ViewEvent instead

Table of Contents

$controllerResult  : mixed
The return value of the controller.
$kernel  : mixed
$propagationStopped  : mixed
$request  : mixed
$requestType  : mixed
$response  : mixed
__construct()  : mixed
getControllerResult()  : mixed
Returns the return value of the controller.
getKernel()  : HttpKernelInterface
Returns the kernel in which this event was thrown.
getRequest()  : Request
Returns the request the kernel is currently processing.
getRequestType()  : int
Returns the request type the kernel is currently processing.
getResponse()  : Response|null
Returns the response object.
hasResponse()  : bool
Returns whether a response was set.
isMasterRequest()  : bool
Checks if this is a master request.
isPropagationStopped()  : bool
setControllerResult()  : mixed
Assigns the return value of the controller.
setResponse()  : mixed
Sets a response and stops event propagation.
stopPropagation()  : mixed

Properties

$propagationStopped

private mixed $propagationStopped = false

Methods

getControllerResult()

Returns the return value of the controller.

public getControllerResult() : mixed
Return values
mixed

The controller return value

getRequest()

Returns the request the kernel is currently processing.

public getRequest() : Request
Return values
Request

getRequestType()

Returns the request type the kernel is currently processing.

public getRequestType() : int
Return values
int

One of HttpKernelInterface::MASTER_REQUEST and HttpKernelInterface::SUB_REQUEST

hasResponse()

Returns whether a response was set.

public hasResponse() : bool
Return values
bool

Whether a response was set

isMasterRequest()

Checks if this is a master request.

public isMasterRequest() : bool
Return values
bool

True if the request is a master request

isPropagationStopped()

public isPropagationStopped() : bool
Tags
deprecated

since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead

Return values
bool

Whether propagation was already stopped for this event

setControllerResult()

Assigns the return value of the controller.

public setControllerResult(mixed $controllerResult) : mixed
Parameters
$controllerResult : mixed

The controller return value

Return values
mixed

setResponse()

Sets a response and stops event propagation.

public setResponse(Response $response) : mixed
Parameters
$response : Response
Return values
mixed

stopPropagation()

public stopPropagation() : mixed
Tags
deprecated

since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead

Return values
mixed

Search results