DoctrineDataCollector
extends DoctrineDataCollector
in package
DoctrineDataCollector.
Tags
Table of Contents
Properties
- $data : array<string|int, mixed>|Data
- $cloner : mixed
- $connections : array<string|int, mixed>
- $debugDataHolder : DebugDataHolder|null
- $groupedQueries : array<string|int, array<string|int, mixed>>|null
- $invalidEntityCount : int|null
- $loggers : array<string, DebugStack>
- $managers : array<string|int, mixed>
- $registry : ManagerRegistry
- $shouldValidateSchema : bool
Methods
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- addLogger() : mixed
- Adds the stack logger for a connection.
- collect() : void
- {@inheritdoc}
- getCacheCounts() : array<string, int>
- getCacheEnabled() : bool
- getCacheHitsCount() : int
- getCacheMissesCount() : int
- getCachePutsCount() : int
- getCacheRegions() : array<string, array<string, int>>
- getConnections() : mixed
- getEntities() : array<string, array<string, string>>
- getGroupedQueries() : array<string|int, array<string|int, string>>
- getGroupedQueryCount() : int
- getInvalidEntityCount() : int
- getManagers() : mixed
- getMappingErrors() : array<string, array<string, array<int, string>>>
- 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>
- executionTimePercentage() : float
- 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
$groupedQueries
private
array<string|int, array<string|int, mixed>>|null
$groupedQueries
= null
Tags
$invalidEntityCount
private
int|null
$invalidEntityCount
= null
$loggers
private
array<string, DebugStack>
$loggers
= []
$managers
private
array<string|int, mixed>
$managers
$registry
private
ManagerRegistry
$registry
$shouldValidateSchema
private
bool
$shouldValidateSchema
Methods
__construct()
public
__construct(ManagerRegistry $registry[, bool $shouldValidateSchema = true ][, DebugDataHolder|null $debugDataHolder = null ]) : mixed
Parameters
- $registry : ManagerRegistry
- $shouldValidateSchema : bool = true
- $debugDataHolder : DebugDataHolder|null = 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|null $exception = null ]) : void
Parameters
getCacheCounts()
public
getCacheCounts() : array<string, int>
Return values
array<string, int>getCacheEnabled()
public
getCacheEnabled() : bool
Return values
boolgetCacheHitsCount()
public
getCacheHitsCount() : int
Return values
intgetCacheMissesCount()
public
getCacheMissesCount() : int
Return values
intgetCachePutsCount()
public
getCachePutsCount() : int
Return values
intgetCacheRegions()
public
getCacheRegions() : array<string, array<string, int>>
Tags
Return values
array<string, array<string, int>>getConnections()
public
getConnections() : mixed
getEntities()
public
getEntities() : array<string, array<string, string>>
Return values
array<string, array<string, string>>getGroupedQueries()
public
getGroupedQueries() : array<string|int, array<string|int, string>>
Tags
Return values
array<string|int, array<string|int, string>>getGroupedQueryCount()
public
getGroupedQueryCount() : int
Return values
intgetInvalidEntityCount()
public
getInvalidEntityCount() : int
Return values
intgetManagers()
public
getManagers() : mixed
getMappingErrors()
public
getMappingErrors() : array<string, array<string, array<int, string>>>
Return values
array<string, array<string, array<int, string>>>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>executionTimePercentage()
private
executionTimePercentage(float $executionTimeMS, float $totalExecutionTimeMS) : float
Parameters
- $executionTimeMS : float
- $totalExecutionTimeMS : float
Return values
floatsanitizeParam()
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>