diff --git a/Dbal/BlacklistSchemaAssetFilter.php b/Dbal/BlacklistSchemaAssetFilter.php index 58c4a3bd2..e2b2d145a 100644 --- a/Dbal/BlacklistSchemaAssetFilter.php +++ b/Dbal/BlacklistSchemaAssetFilter.php @@ -6,6 +6,9 @@ use function in_array; +/** + * @deprecated Implement your own include/exclude mechanism + */ class BlacklistSchemaAssetFilter { /** @var string[] */ diff --git a/DependencyInjection/Compiler/WellKnownSchemaFilterPass.php b/DependencyInjection/Compiler/WellKnownSchemaFilterPass.php index f307baeba..254914ed8 100644 --- a/DependencyInjection/Compiler/WellKnownSchemaFilterPass.php +++ b/DependencyInjection/Compiler/WellKnownSchemaFilterPass.php @@ -12,6 +12,8 @@ /** * Blacklist tables used by well-known Symfony classes. + * + * @deprecated Implement your own include/exclude mechanism */ class WellKnownSchemaFilterPass implements CompilerPassInterface { diff --git a/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php b/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php index dfb4a79d6..f6b2df464 100644 --- a/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php +++ b/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php @@ -889,6 +889,7 @@ public static function dataWellKnownSchemaFilterServices() /** * @dataProvider dataWellKnownSchemaFilterServices + * @group legacy */ public function testWellKnownSchemaFilterDefaultTables(string $fileName, string $tableName): void { @@ -927,6 +928,7 @@ public static function dataWellKnownSchemaOverriddenTablesFilterServices() /** * @dataProvider dataWellKnownSchemaOverriddenTablesFilterServices + * @group legacy */ public function testWellKnownSchemaFilterOverriddenTables(string $fileName, string $tableName): void { diff --git a/UPGRADE-2.3.md b/UPGRADE-2.3.md new file mode 100644 index 000000000..54a209cc1 --- /dev/null +++ b/UPGRADE-2.3.md @@ -0,0 +1,8 @@ +UPGRADE FROM 2.2 to 2.3 +======================= + +DependencyInjection +-------- + + * `\Doctrine\Bundle\DoctrineBundle\Dbal\BlacklistSchemaAssetFilter` has been deprecated. Implement your own include/exclude strategies. + * `\Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\WellKnownSchemaFilterPass` has been deprecated. Implement your own include/exclude strategies.