Documentation

LazyResponseEvent extends RequestEvent
in package

FinalYes

Wraps a lazily computed response in a signaling exception.

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

Properties

$event  : parent
$kernel  : mixed
$propagationStopped  : bool
$request  : mixed
$requestType  : int|null
$response  : mixed

Methods

__construct()  : mixed
getKernel()  : HttpKernelInterface
{@inheritdoc}
getRequest()  : Request
{@inheritdoc}
getRequestType()  : int
{@inheritdoc}
getResponse()  : Response|null
Returns the response object.
hasResponse()  : bool
Returns whether a response was set.
isMainRequest()  : bool
{@inheritdoc}
isPropagationStopped()  : bool
Is propagation stopped?
setResponse()  : mixed
Sets a response and stops event propagation.
stopPropagation()  : void
Stops the propagation of the event to further event listeners.

Properties

$propagationStopped

private bool $propagationStopped = false

Methods

__construct()

public __construct(parent $event) : mixed
Parameters
$event : parent

getRequestType()

{@inheritdoc}

public getRequestType() : int
Return values
int

hasResponse()

Returns whether a response was set.

public hasResponse() : bool
Return values
bool

isMainRequest()

{@inheritdoc}

public isMainRequest() : bool
Return values
bool

isPropagationStopped()

Is propagation stopped?

public isPropagationStopped() : bool
Return values
bool

True if the Event is complete and no further listeners should be called. False to continue calling listeners.

stopPropagation()

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().


        
On this page

Search results