DoctrineDataCollector
extends DataCollector
in package
DoctrineDataCollector.
Tags
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
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
mixed
$cloner
$connections
private
array<string|int, mixed>
$connections
$debugDataHolder
private
DebugDataHolder|null
$debugDataHolder
$loggers
private
array<string, DebugStack>
$loggers
= []
$managers
private
array<string|int, mixed>
$managers
$registry
private
mixed
$registry
Methods
__construct()
public
__construct(ManagerRegistry $registry[, DebugDataHolder $debugDataHolder = null ]) : mixed
Parameters
- $registry : ManagerRegistry
- $debugDataHolder : DebugDataHolder = null
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
addLogger()
Adds the stack logger for a connection.
public
addLogger(string $name, DebugStack $logger) : mixed
Parameters
- $name : string
- $logger : DebugStack
collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
getConnections()
public
getConnections() : mixed
getManagers()
public
getManagers() : mixed
getName()
{@inheritdoc}
public
getName() : string
Return values
stringgetQueries()
public
getQueries() : mixed
getQueryCount()
public
getQueryCount() : mixed
getTime()
public
getTime() : mixed
reset()
public
reset() : 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
DatagetCasters()
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>