Skip to content

Commit

Permalink
[doctrineGH-3935] Add deprecation trigger for EchoSQLLogger.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Mar 27, 2021
1 parent ec232ef commit 74f4a28
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Doctrine/DBAL/Logging/EchoSQLLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Doctrine\DBAL\Logging;

use Doctrine\Deprecations\Deprecation;

use function var_dump;

use const PHP_EOL;
Expand All @@ -13,6 +15,15 @@
*/
class EchoSQLLogger implements SQLLogger
{
public function __construct()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/3935',
'EchoSQLLogger is deprecated without replacement, move the code into your project if you rely on it.'
);
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 74f4a28

Please sign in to comment.