DoctrineSqlLogger implements SQLLogger, LoggerAwareInterface uses LoggerAwareTrait
Doctrine SQL Logger implementation for recording queries for the admin panel
Table of Contents
Interfaces
- SQLLogger
- LoggerAwareInterface
Properties
- $currentQuery : int
- $enabled : bool
- If Debug Stack is enabled (log queries) or not.
- $queries : array<string|int, mixed>
- Executed SQL queries.
- $start : float
Methods
- getQueries() : array<string|int, mixed>
- startQuery() : mixed
- {@inheritdoc}
- stopQuery() : mixed
- {@inheritdoc}
Properties
$currentQuery
protected
int
$currentQuery
= 0
$enabled
If Debug Stack is enabled (log queries) or not.
protected
bool
$enabled
= true
$queries
Executed SQL queries.
protected
array<string|int, mixed>
$queries
= []
$start
protected
float
$start
Methods
getQueries()
public
getQueries() : array<string|int, mixed>
Return values
array<string|int, mixed>startQuery()
{@inheritdoc}
public
startQuery(mixed $sql[, array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $types = null ]) : mixed
Parameters
- $sql : mixed
- $params : array<string|int, mixed>|null = null
- $types : array<string|int, mixed>|null = null
stopQuery()
{@inheritdoc}
public
stopQuery() : mixed