DebugProcessor
in package
implements
DebugLoggerInterface, ResetInterface
Table of Contents
Interfaces
- DebugLoggerInterface
- DebugLoggerInterface.
- ResetInterface
- Provides a way to reset an object to its initial state.
Properties
- $errorCount : array<string|int, mixed>
- $records : array<string|int, mixed>
- $requestStack : mixed
Methods
- __construct() : mixed
- __invoke() : mixed
- clear() : mixed
- Removes all log records.
- countErrors() : int
- Returns the number of errors.
- getLogs() : array<string|int, mixed>
- Returns an array of logs.
- reset() : mixed
Properties
$errorCount
private
array<string|int, mixed>
$errorCount
= []
$records
private
array<string|int, mixed>
$records
= []
$requestStack
private
mixed
$requestStack
Methods
__construct()
public
__construct([RequestStack $requestStack = null ]) : mixed
Parameters
- $requestStack : RequestStack = null
__invoke()
public
__invoke(array<string|int, mixed> $record) : mixed
Parameters
- $record : array<string|int, mixed>
clear()
Removes all log records.
public
clear() : mixed
countErrors()
Returns the number of errors.
public
countErrors([Request $request = null ]) : int
Parameters
- $request : Request = null
Return values
intgetLogs()
Returns an array of logs.
public
getLogs([Request $request = null ]) : array<string|int, mixed>
Parameters
- $request : Request = null
Return values
array<string|int, mixed>reset()
public
reset() : mixed