class RouterDataCollector extends DataCollector

RouterDataCollector.

Properties

protected $data from DataCollector
protected SplObjectStorage $controllers

Methods

serialize()

No description

unserialize($data)

No description

cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

callable[]
getCasters()

No description

__construct()

No description

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

reset()

Resets this data collector to its initial state.

guessRoute(Request $request, $controller)

No description

onKernelController(FilterControllerEvent $event)

Remembers the controller associated to each request.

bool
getRedirect()

No description

string|null
getTargetUrl()

No description

string|null
getTargetRoute()

No description

string
getName()

Returns the name of the collector.

Details

in DataCollector at line 37
serialize()

in DataCollector at line 42
unserialize($data)

Parameters

$data

in DataCollector at line 57
protected Data cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

This array can be displayed in the template using the VarDumper component.

Parameters

mixed $var

Return Value

Data

in DataCollector at line 77
protected callable[] getCasters()

Return Value

callable[] The casters to add to the cloner

at line 31
__construct()

at line 39
collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request
Response $response
Exception $exception

at line 53
reset()

Resets this data collector to its initial state.

at line 64
protected guessRoute(Request $request, $controller)

Parameters

Request $request
$controller

at line 72
onKernelController(FilterControllerEvent $event)

Remembers the controller associated to each request.

Parameters

FilterControllerEvent $event

at line 80
bool getRedirect()

Return Value

bool Whether this request will result in a redirect

at line 88
string|null getTargetUrl()

Return Value

string|null The target URL

at line 96
string|null getTargetRoute()

Return Value

string|null The target route

at line 104
string getName()

Returns the name of the collector.

Return Value

string The collector name