Skip to content

Commit

Permalink
Merge pull request #1286 from doctrine/deprecate-blacklist
Browse files Browse the repository at this point in the history
#1176 Deprecate (Blacklist|WellKnown) schema filters
  • Loading branch information
ostrolucky authored Feb 11, 2021
2 parents 91f0139 + 6cb9e25 commit cf98a24
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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 cf98a24

Please sign in to comment.