Documentation

FinishRequestEvent extends KernelEvent
in package

Triggered whenever a request is fully processed.

Tags
author

Benjamin Eberlei kontakt@beberlei.de

Table of Contents

$kernel  : mixed
$propagationStopped  : mixed
$request  : mixed
$requestType  : mixed
__construct()  : mixed
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.
isMainRequest()  : bool
Checks if this is the main request.
isMasterRequest()  : bool
Checks if this is a master request.
isPropagationStopped()  : bool
Is propagation stopped?
stopPropagation()  : void
Stops the propagation of the event to further event listeners.

Properties

$propagationStopped

private mixed $propagationStopped = false

Methods

__construct()

public __construct(HttpKernelInterface $kernel, Request $request, int $requestType) : mixed
Parameters
$kernel : HttpKernelInterface
$request : Request
$requestType : int

The request type the kernel is currently processing; one of HttpKernelInterface::MAIN_REQUEST or HttpKernelInterface::SUB_REQUEST

Return values
mixed

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::MAIN_REQUEST and HttpKernelInterface::SUB_REQUEST

isMainRequest()

Checks if this is the main request.

public isMainRequest() : bool
Return values
bool

isMasterRequest()

Checks if this is a master request.

public isMasterRequest() : bool
Tags
deprecated

since symfony/http-kernel 5.3, use isMainRequest() instead

Return values
bool

isPropagationStopped()

Is propagation stopped?

public isPropagationStopped() : bool
Return values
bool

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().

Return values
void

Search results