From 2f747374385aa90331e063059c392c8855264e72 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 6 Mar 2021 19:05:38 +0100 Subject: [PATCH] [GH-4213] Add deprecation to SchemaSynchronizer API. --- .../Schema/Synchronizer/AbstractSchemaSynchronizer.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Doctrine/DBAL/Schema/Synchronizer/AbstractSchemaSynchronizer.php b/lib/Doctrine/DBAL/Schema/Synchronizer/AbstractSchemaSynchronizer.php index 7cfd1f2c00f..85f4ae6d3d0 100644 --- a/lib/Doctrine/DBAL/Schema/Synchronizer/AbstractSchemaSynchronizer.php +++ b/lib/Doctrine/DBAL/Schema/Synchronizer/AbstractSchemaSynchronizer.php @@ -3,6 +3,7 @@ namespace Doctrine\DBAL\Schema\Synchronizer; use Doctrine\DBAL\Connection; +use Doctrine\Deprecations\Deprecation; use Throwable; /** @@ -18,6 +19,12 @@ abstract class AbstractSchemaSynchronizer implements SchemaSynchronizer public function __construct(Connection $conn) { $this->conn = $conn; + + Deprecation::trigger( + 'doctrine/dbal', + 'https://github.com/doctrine/dbal/pull/4213', + 'SchemaSynchronizer API is deprecated without a replacement and will be removed in DBAL 3.0' + ); } /**