Skip to content

Commit 0f43d91

Browse files
committed
[doctrineGH-3935] Add deprecation trigger for EchoSQLLogger.
1 parent b58e75c commit 0f43d91

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Doctrine/DBAL/Logging/EchoSQLLogger.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Doctrine\DBAL\Logging;
44

5+
use Doctrine\Deprecations\Deprecation;
6+
57
use function var_dump;
68

79
use const PHP_EOL;
@@ -13,6 +15,15 @@
1315
*/
1416
class EchoSQLLogger implements SQLLogger
1517
{
18+
public function __construct()
19+
{
20+
Deprecation::trigger(
21+
'doctrine/dbal',
22+
'https://github.com/doctrine/dbal/pull/3935',
23+
'EchoSQLLogger is deprecated without replacement, move code into your project if you rely on it.'
24+
);
25+
}
26+
1627
/**
1728
* {@inheritdoc}
1829
*/

0 commit comments

Comments
 (0)