Skip to content

Commit a188c94

Browse files
authored
fix(symfony): autoconfigure legacy alias fixes #6177 (#6181)
1 parent e7b4421 commit a188c94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
namespace ApiPlatform\Symfony\Bundle\DependencyInjection;
1515

16+
use ApiPlatform\Api\FilterInterface as LegacyFilterInterface;
1617
use ApiPlatform\Doctrine\Odm\Extension\AggregationCollectionExtensionInterface;
1718
use ApiPlatform\Doctrine\Odm\Extension\AggregationItemExtensionInterface;
1819
use ApiPlatform\Doctrine\Odm\Filter\AbstractFilter as DoctrineMongoDbOdmAbstractFilter;
@@ -168,6 +169,8 @@ public function load(array $configs, ContainerBuilder $container): void
168169

169170
$container->registerForAutoconfiguration(FilterInterface::class)
170171
->addTag('api_platform.filter');
172+
$container->registerForAutoconfiguration(LegacyFilterInterface::class)
173+
->addTag('api_platform.filter');
171174
$container->registerForAutoconfiguration(ProviderInterface::class)
172175
->addTag('api_platform.state_provider');
173176
$container->registerForAutoconfiguration(ProcessorInterface::class)

0 commit comments

Comments
 (0)