LoggerDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
LogDataCollector.
Tags
Interfaces, Classes and Traits
- LateDataCollectorInterface
- LateDataCollectorInterface.
Table of Contents
- $data : array<string|int, mixed>|Data
- $cloner : ClonerInterface
- $containerPathPrefix : mixed
- $logger : mixed
- $valueExporter : ValueExporter
- __construct() : mixed
- collect() : mixed
- {@inheritdoc}
- countDeprecations() : mixed
- countErrors() : mixed
- countScreams() : mixed
- countWarnings() : mixed
- getCompilerLogs() : mixed
- getLogs() : mixed
- getName() : mixed
- {@inheritdoc}
- getPriorities() : mixed
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- {@inheritdoc}
- serialize() : mixed
- unserialize() : mixed
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- varToString() : string
- Converts a PHP variable to a string.
- computeErrorsCount() : mixed
- getContainerCompilerLogs() : mixed
- getContainerDeprecationLogs() : mixed
- isSilencedOrDeprecationErrorLog() : mixed
- sanitizeLogs() : mixed
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
ClonerInterface
$cloner
$containerPathPrefix
private
mixed
$containerPathPrefix
$logger
private
mixed
$logger
$valueExporter
private
ValueExporter
$valueExporter
Methods
__construct()
public
__construct([mixed $logger = null ][, mixed $containerPathPrefix = null ]) : mixed
Parameters
- $logger : mixed = null
- $containerPathPrefix : mixed = null
Return values
mixed —collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Exception $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 —getLogs()
public
getLogs() : mixed
Return values
mixed —getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —getPriorities()
public
getPriorities() : 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 —serialize()
public
serialize() : mixed
Return values
mixed —unserialize()
public
unserialize(mixed $data) : mixed
Parameters
- $data : 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
varToString()
Converts a PHP variable to a string.
protected
varToString(mixed $var) : string
Parameters
- $var : mixed
-
A PHP variable
Tags
Return values
string —The string representation of the variable
computeErrorsCount()
private
computeErrorsCount(array<string|int, mixed> $containerDeprecationLogs) : mixed
Parameters
- $containerDeprecationLogs : array<string|int, mixed>
Return values
mixed —getContainerCompilerLogs()
private
getContainerCompilerLogs() : mixed
Return values
mixed —getContainerDeprecationLogs()
private
getContainerDeprecationLogs() : mixed
Return values
mixed —isSilencedOrDeprecationErrorLog()
private
isSilencedOrDeprecationErrorLog(array<string|int, mixed> $log) : mixed
Parameters
- $log : array<string|int, mixed>
Return values
mixed —sanitizeLogs()
private
sanitizeLogs(mixed $logs) : mixed
Parameters
- $logs : mixed