LoggerDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Interfaces, Classes and Traits
- LateDataCollectorInterface
- LateDataCollectorInterface.
Table of Contents
- $data : array<string|int, mixed>|Data
- $cloner : ClonerInterface
- $containerPathPrefix : mixed
- $currentRequest : mixed
- $logger : mixed
- $processedLogs : mixed
- $requestStack : mixed
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- countDeprecations() : mixed
- countErrors() : mixed
- countScreams() : mixed
- countWarnings() : mixed
- getCompilerLogs() : mixed
- getFilters() : mixed
- getLogs() : mixed
- getName() : string
- {@inheritdoc}
- getPriorities() : mixed
- getProcessedLogs() : mixed
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- {@inheritdoc}
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- computeErrorsCount() : array<string|int, mixed>
- getContainerCompilerLogs() : array<string|int, mixed>
- getContainerDeprecationLogs() : array<string|int, mixed>
- isSilencedOrDeprecationErrorLog() : bool
- sanitizeLogs() : mixed
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
ClonerInterface
$cloner
$containerPathPrefix
private
mixed
$containerPathPrefix
$currentRequest
private
mixed
$currentRequest
$logger
private
mixed
$logger
$processedLogs
private
mixed
$processedLogs
$requestStack
private
mixed
$requestStack
Methods
__construct()
public
__construct([object|null $logger = null ][, string|null $containerPathPrefix = null ][, RequestStack|null $requestStack = null ]) : mixed
Parameters
- $logger : object|null = null
- $containerPathPrefix : string|null = null
- $requestStack : RequestStack|null = null
Return values
mixed —__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —__wakeup()
public
__wakeup() : mixed
Return values
mixed —collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable|null $exception = null ]) : mixed
Parameters
Return values
mixed —countDeprecations()
public
countDeprecations() : mixed
Return values
mixed —countErrors()
public
countErrors() : mixed
Return values
mixed —countScreams()
public
countScreams() : mixed
Return values
mixed —countWarnings()
public
countWarnings() : mixed
Return values
mixed —getCompilerLogs()
public
getCompilerLogs() : mixed
Return values
mixed —getFilters()
public
getFilters() : mixed
Return values
mixed —getLogs()
public
getLogs() : mixed
Return values
mixed —getName()
{@inheritdoc}
public
getName() : string
Return values
string —getPriorities()
public
getPriorities() : mixed
Return values
mixed —getProcessedLogs()
public
getProcessedLogs() : mixed
Return values
mixed —lateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
Return values
mixed —reset()
{@inheritdoc}
public
reset() : mixed
Return values
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
computeErrorsCount()
private
computeErrorsCount(array<string|int, mixed> $containerDeprecationLogs) : array<string|int, mixed>
Parameters
- $containerDeprecationLogs : array<string|int, mixed>
Return values
array<string|int, mixed> —getContainerCompilerLogs()
private
getContainerCompilerLogs([string|null $compilerLogsFilepath = null ]) : array<string|int, mixed>
Parameters
- $compilerLogsFilepath : string|null = null
Return values
array<string|int, mixed> —getContainerDeprecationLogs()
private
getContainerDeprecationLogs() : array<string|int, mixed>
Return values
array<string|int, mixed> —isSilencedOrDeprecationErrorLog()
private
isSilencedOrDeprecationErrorLog(array<string|int, mixed> $log) : bool
Parameters
- $log : array<string|int, mixed>
Return values
bool —sanitizeLogs()
private
sanitizeLogs(array<string|int, mixed> $logs) : mixed
Parameters
- $logs : array<string|int, mixed>