Skip to content

Commit

Permalink
#1176 Deprecate (Blacklist|WellKnown) schema filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Jan 30, 2021
1 parent 3a88af2 commit 6cb9e25
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dbal/BlacklistSchemaAssetFilter.php
Expand Up @@ -6,6 +6,9 @@

use function in_array;

/**
* @deprecated Implement your own include/exclude mechanism
*/
class BlacklistSchemaAssetFilter
{
/** @var string[] */
Expand Down
2 changes: 2 additions & 0 deletions DependencyInjection/Compiler/WellKnownSchemaFilterPass.php
Expand Up @@ -12,6 +12,8 @@

/**
* Blacklist tables used by well-known Symfony classes.
*
* @deprecated Implement your own include/exclude mechanism
*/
class WellKnownSchemaFilterPass implements CompilerPassInterface
{
Expand Down
2 changes: 2 additions & 0 deletions Tests/DependencyInjection/AbstractDoctrineExtensionTest.php
Expand Up @@ -889,6 +889,7 @@ public static function dataWellKnownSchemaFilterServices()

/**
* @dataProvider dataWellKnownSchemaFilterServices
* @group legacy
*/
public function testWellKnownSchemaFilterDefaultTables(string $fileName, string $tableName): void
{
Expand Down Expand Up @@ -927,6 +928,7 @@ public static function dataWellKnownSchemaOverriddenTablesFilterServices()

/**
* @dataProvider dataWellKnownSchemaOverriddenTablesFilterServices
* @group legacy
*/
public function testWellKnownSchemaFilterOverriddenTables(string $fileName, string $tableName): void
{
Expand Down
8 changes: 8 additions & 0 deletions 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.

0 comments on commit 6cb9e25

Please sign in to comment.