FileAccess Orion

ControllerArgumentsEvent extends FilterControllerArgumentsEvent
in package

Allows filtering of controller arguments.

You can call getController() to retrieve the controller and getArguments to retrieve the current arguments. With setArguments() you can replace arguments that are used to call the controller.

Arguments set in the event must be compatible with the signature of the controller.

Tags
author

Christophe Coevoet stof@notk.org

final

since Symfony 4.4

Table of Contents

$arguments  : mixed
$controller  : mixed
$kernel  : mixed
$propagationStopped  : mixed
$request  : mixed
$requestType  : mixed
__construct()  : mixed
getArguments()  : array<string|int, mixed>
getController()  : callable
Returns the current 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.
isMasterRequest()  : bool
Checks if this is a master request.
isPropagationStopped()  : bool
setArguments()  : mixed
setController()  : mixed
stopPropagation()  : mixed

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::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST

Return values
mixed

getController()

Returns the current controller.

public getController() : callable
Return values
callable

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

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

setArguments()

public setArguments(array<string|int, mixed> $arguments) : mixed
Parameters
$arguments : array<string|int, mixed>
Return values
mixed

setController()

public setController(callable $controller) : mixed
Parameters
$controller : callable
Return values
mixed

stopPropagation()

public stopPropagation() : mixed
Tags
deprecated

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

Return values
mixed

Search results