Skip to content

Commit

Permalink
[doctrineGH-4213] Add deprecation to SchemaSynchronizer API.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Mar 7, 2021
1 parent c7225fe commit 9ca8641
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Doctrine\DBAL\Schema\Synchronizer;

use Doctrine\DBAL\Connection;
use Doctrine\Deprecations\Deprecation;
use Throwable;

/**
Expand All @@ -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'
);
}

/**
Expand Down

0 comments on commit 9ca8641

Please sign in to comment.