From 04c497e5fa71ff8d2420a91e73327497af4861dc Mon Sep 17 00:00:00 2001 From: Jan Skrasek Date: Thu, 7 May 2020 23:28:39 +0200 Subject: [PATCH] CallbackQueryLogger is not deprecated --- src/Utils/CallbackQueryLogger.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/Utils/CallbackQueryLogger.php b/src/Utils/CallbackQueryLogger.php index db8bfd33..02a7e0b5 100644 --- a/src/Utils/CallbackQueryLogger.php +++ b/src/Utils/CallbackQueryLogger.php @@ -8,20 +8,13 @@ /** - * Support class to ease BC with Dbal 3.0. - * - * Replace - * - * - * $connection->onQuery[] = function(...) {...}; - * - * - * with + * Support class to easily log only executed queries. * * - * $connection->addLogger(new CallbackQueryLogger(function (...) {...})); + * $connection->addLogger(new CallbackQueryLogger(function (string $query, float $timeTaken, ?Result $result) { + * echo $query; + * })); * - * @deprecated */ class CallbackQueryLogger implements ILogger {