Skip to content

Commit

Permalink
fix(symfony): autoconfigure legacy alias fixes #6177 (#6181)
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka authored Feb 29, 2024
1 parent e7b4421 commit a188c94
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace ApiPlatform\Symfony\Bundle\DependencyInjection;

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

$container->registerForAutoconfiguration(FilterInterface::class)
->addTag('api_platform.filter');
$container->registerForAutoconfiguration(LegacyFilterInterface::class)
->addTag('api_platform.filter');
$container->registerForAutoconfiguration(ProviderInterface::class)
->addTag('api_platform.state_provider');
$container->registerForAutoconfiguration(ProcessorInterface::class)
Expand Down

0 comments on commit a188c94

Please sign in to comment.