Skip to content

Commit

Permalink
CallbackQueryLogger is not deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed May 7, 2020
1 parent 1b49196 commit 04c497e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/Utils/CallbackQueryLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,13 @@


/**
* Support class to ease BC with Dbal 3.0.
*
* Replace
*
* <code>
* $connection->onQuery[] = function(...) {...};
* </code>
*
* with
* Support class to easily log only executed queries.
*
* <code>
* $connection->addLogger(new CallbackQueryLogger(function (...) {...}));
* $connection->addLogger(new CallbackQueryLogger(function (string $query, float $timeTaken, ?Result $result) {
* echo $query;
* }));
* </code>
* @deprecated
*/
class CallbackQueryLogger implements ILogger
{
Expand Down

0 comments on commit 04c497e

Please sign in to comment.