diff --git a/lib/Doctrine/DBAL/Logging/EchoSQLLogger.php b/lib/Doctrine/DBAL/Logging/EchoSQLLogger.php index 9499d2ce643..1187054c622 100644 --- a/lib/Doctrine/DBAL/Logging/EchoSQLLogger.php +++ b/lib/Doctrine/DBAL/Logging/EchoSQLLogger.php @@ -2,6 +2,8 @@ namespace Doctrine\DBAL\Logging; +use Doctrine\Deprecations\Deprecation; + use function var_dump; use const PHP_EOL; @@ -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 code into your project if you rely on it.' + ); + } + /** * {@inheritdoc} */