class DumpDataCollector extends DataCollector implements DataDumperInterface

Properties

protected $data from DataCollector

Methods

serialize()

No description

unserialize($data)

No description

cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

string
varToString(mixed $var) deprecated

Converts a PHP variable to a string.

callable[]
getCasters()

No description

__construct(Stopwatch $stopwatch = null, $fileLinkFormat = null, $charset = null, RequestStack $requestStack = null, DataDumperInterface $dumper = null)

No description

__clone()

No description

dump(Data $data)

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.

getDumpsCount()

No description

getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1)

No description

string
getName()

Returns the name of the collector.

__destruct()

No description

Details

at line 179
serialize()

at line 198
unserialize($data)

Parameters

$data

in DataCollector at line 66
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 101
protected string varToString(mixed $var) deprecated

deprecated since version 3.2, to be removed in 4.0. Use cloneVar() instead.

Converts a PHP variable to a string.

Parameters

mixed $var A PHP variable

Return Value

string The string representation of the variable

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

Return Value

callable[] The casters to add to the cloner

at line 42
__construct(Stopwatch $stopwatch = null, $fileLinkFormat = null, $charset = null, RequestStack $requestStack = null, DataDumperInterface $dumper = null)

Parameters

Stopwatch $stopwatch
$fileLinkFormat
$charset
RequestStack $requestStack
DataDumperInterface $dumper

at line 60
__clone()

at line 65
dump(Data $data)

Parameters

Data $data

at line 139
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 167
reset()

Resets this data collector to its initial state.

at line 207
getDumpsCount()

at line 212
getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1)

Parameters

$format
$maxDepthLimit
$maxItemsPerDepth

at line 235
string getName()

Returns the name of the collector.

Return Value

string The collector name

at line 240
__destruct()