Documentation

DoctrineDataCollector extends DataCollector
in package

DoctrineDataCollector.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Properties

$data  : array<string|int, mixed>|Data
$cloner  : mixed
$connections  : array<string|int, mixed>
$debugDataHolder  : DebugDataHolder|null
$loggers  : array<string, DebugStack>
$managers  : array<string|int, mixed>
$registry  : mixed

Methods

__construct()  : mixed
__sleep()  : array<string|int, mixed>
__wakeup()  : mixed
addLogger()  : mixed
Adds the stack logger for a connection.
collect()  : mixed
{@inheritdoc}
getConnections()  : mixed
getManagers()  : mixed
getName()  : string
{@inheritdoc}
getQueries()  : mixed
getQueryCount()  : mixed
getTime()  : mixed
reset()  : mixed
cloneVar()  : Data
Converts the variable into a serializable Data instance.
getCasters()  : array<string|int, callable>
collectQueries()  : array<string|int, mixed>
sanitizeParam()  : array<string|int, mixed>
Sanitizes a param.
sanitizeQueries()  : array<string|int, mixed>
sanitizeQuery()  : array<string|int, mixed>

Properties

Methods

__sleep()

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

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

collectQueries()

private collectQueries() : array<string|int, mixed>
Return values
array<string|int, mixed>

sanitizeParam()

Sanitizes a param.

private sanitizeParam(mixed $var, Throwable|null $error) : array<string|int, mixed>

The return value is an array with the sanitized value and a boolean indicating if the original value was kept (allowing to use the sanitized value to explain the query).

Parameters
$var : mixed
$error : Throwable|null
Return values
array<string|int, mixed>

sanitizeQueries()

private sanitizeQueries(string $connectionName, array<string|int, mixed> $queries) : array<string|int, mixed>
Parameters
$connectionName : string
$queries : array<string|int, mixed>
Return values
array<string|int, mixed>

sanitizeQuery()

private sanitizeQuery(string $connectionName, array<string|int, mixed> $query) : array<string|int, mixed>
Parameters
$connectionName : string
$query : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results