DoctrineSqlLogger implements LoggerAwareInterface uses LoggerAwareTrait

Doctrine SQL Logger implementation for recording queries for the admin panel

Internal

Table of Contents

Interfaces

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

enable()  : void
getQueries()  : array<string|int, mixed>
startQuery()  : void
stopQuery()  : void

Properties

$currentQuery

protected int $currentQuery = 0

$enabled

If Debug Stack is enabled (log queries) or not.

protected bool $enabled = false

$queries

Executed SQL queries.

protected array<string|int, mixed> $queries = []

Methods

getQueries()

public getQueries() : array<string|int, mixed>
Return values
array<string|int, mixed>

startQuery()

public startQuery(mixed $sql[, array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $types = null ]) : void
Parameters
$sql : mixed
$params : array<string|int, mixed>|null = null
$types : array<string|int, mixed>|null = null

        
On this page

Search results