LoggerDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
- LateDataCollectorInterface.
Properties
- $data : array<string|int, mixed>|Data
- $cloner : mixed
- $containerPathPrefix : string|null
- $currentRequest : mixed
- $logger : mixed
- $processedLogs : array<string|int, mixed>|null
- $requestStack : mixed
Methods
- __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
mixed
$cloner
$containerPathPrefix
private
string|null
$containerPathPrefix
$currentRequest
private
mixed
$currentRequest
= null
$logger
private
mixed
$logger
$processedLogs
private
array<string|int, mixed>|null
$processedLogs
= null
$requestStack
private
mixed
$requestStack
Methods
__construct()
public
__construct([object $logger = null ][, string $containerPathPrefix = null ][, RequestStack $requestStack = null ]) : mixed
Parameters
- $logger : object = null
- $containerPathPrefix : string = null
- $requestStack : RequestStack = null
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
countDeprecations()
public
countDeprecations() : mixed
countErrors()
public
countErrors() : mixed
countScreams()
public
countScreams() : mixed
countWarnings()
public
countWarnings() : mixed
getCompilerLogs()
public
getCompilerLogs() : mixed
getFilters()
public
getFilters() : mixed
getLogs()
public
getLogs() : mixed
getName()
{@inheritdoc}
public
getName() : string
Return values
stringgetPriorities()
public
getPriorities() : mixed
getProcessedLogs()
public
getProcessedLogs() : mixed
lateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
reset()
{@inheritdoc}
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
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 $compilerLogsFilepath = null ]) : array<string|int, mixed>
Parameters
- $compilerLogsFilepath : string = 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
boolsanitizeLogs()
private
sanitizeLogs(array<string|int, mixed> $logs) : mixed
Parameters
- $logs : array<string|int, mixed>