Documentation

LoggerDataCollector extends DataCollector
in package
implements LateDataCollectorInterface

DataCollector.

Tags
author

Fabien Potencier fabien@symfony.com

final

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

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
$request : Request
$response : Response
$exception : Throwable|null = null
Return values
mixed

lateCollect()

Collects data as late as possible.

public lateCollect() : 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>
Return values
mixed

Search results