class Listener

Constants

protected QUERIES_CONTEXT_KEY

The Context key for storing executed queries.

protected MAX_QUERIES

The maximum number of queries to store.

Methods

void
registerListeners(Dispatcher $events)

Register the appropriate listeners on the given event dispatcher.

array
queries()

Return the queries that have been executed.

void
onQueryExecuted(QueryExecuted $event)

Listen for the query executed event.

Details

at line 26
void registerListeners(Dispatcher $events)

Register the appropriate listeners on the given event dispatcher.

Parameters

Dispatcher $events

Return Value

void

at line 36
array queries()

Return the queries that have been executed.

Return Value

array

at line 44
void onQueryExecuted(QueryExecuted $event)

Listen for the query executed event.

Parameters

QueryExecuted $event

Return Value

void