Documentation

RouterDataCollector extends DataCollector
in package

DataCollector.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Properties

$controllers  : SplObjectStorage<Request, callable>
$data  : array<string|int, mixed>|Data
$cloner  : mixed

Methods

__construct()  : mixed
__sleep()  : array<string|int, mixed>
__wakeup()  : mixed
collect()  : mixed
{@inheritdoc}
getName()  : string
{@inheritdoc}
getRedirect()  : bool
getTargetRoute()  : string|null
getTargetUrl()  : string|null
onKernelController()  : mixed
Remembers the controller associated to each request.
reset()  : mixed
cloneVar()  : Data
Converts the variable into a serializable Data instance.
getCasters()  : array<string|int, callable>
guessRoute()  : mixed

Properties

Methods

__sleep()

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

getRedirect()

public getRedirect() : bool
Return values
bool

Whether this request will result in a redirect

cloneVar()

Converts the variable into a serializable Data instance.

protected cloneVar(mixed $var) : Data

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

Parameters
$var : mixed
Return values
Data

getCasters()

protected getCasters() : array<string|int, callable>
Return values
array<string|int, callable>

The casters to add to the cloner

guessRoute()

protected guessRoute(Request $request, string|object|array<string|int, mixed> $controller) : mixed
Parameters
$request : Request
$controller : string|object|array<string|int, mixed>

        
On this page

Search results