Skip to content

Commit 37abce0

Browse files
committed
chore(symfony): bc layer for doctrine query extension tags
1 parent e448f12 commit 37abce0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,14 @@ private function registerDoctrineOrmConfiguration(ContainerBuilder $container, a
671671
->setBindings(['$requestStack' => null]);
672672
$container->registerForAutoconfiguration(DoctrineOrmAbstractFilter::class);
673673

674+
// Legacy namespaces as strings we don't want to load the classes
675+
$container->registerForAutoconfiguration('ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryItemExtensionInterface')
676+
->addTag('api_platform.doctrine.orm.query_extension.item');
677+
$container->registerForAutoconfiguration('ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\ContextAwareQueryCollectionExtensionInterface')
678+
->addTag('api_platform.doctrine.orm.query_extension.collection');
679+
$container->registerForAutoconfiguration('ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryCollectionExtensionInterface')
680+
->addTag('api_platform.doctrine.orm.query_extension.collection');
681+
674682
$loader->load('doctrine_orm.xml');
675683
$loader->load('legacy/doctrine_orm.xml');
676684

0 commit comments

Comments
 (0)