File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
src/Bridge/Symfony/Bundle/Resources/config
tests/Bridge/Symfony/Bundle/DependencyInjection Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 164
164
<tag name =" api_platform.doctrine.orm.query_extension.collection" priority =" 16" />
165
165
</service >
166
166
<service id =" ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\OrderExtension" alias =" api_platform.doctrine.orm.query_extension.order" />
167
+ <service id =" Doctrine\Common\Persistence\ManagerRegistry" alias =" doctrine" />
167
168
</services >
168
169
169
170
</container >
Original file line number Diff line number Diff line change 38
38
use ApiPlatform \Core \Tests \Fixtures \TestBundle \TestBundle ;
39
39
use ApiPlatform \Core \Validator \ValidatorInterface ;
40
40
use Doctrine \Bundle \DoctrineBundle \DoctrineBundle ;
41
+ use Doctrine \Common \Persistence \ManagerRegistry ;
41
42
use FOS \UserBundle \FOSUserBundle ;
42
43
use Nelmio \ApiDocBundle \NelmioApiDocBundle ;
43
44
use PHPUnit \Framework \TestCase ;
@@ -735,6 +736,7 @@ private function getBaseContainerBuilderProphecy()
735
736
PaginationExtension::class => 'api_platform.doctrine.orm.query_extension.pagination ' ,
736
737
OrderExtension::class => 'api_platform.doctrine.orm.query_extension.order ' ,
737
738
ValidatorInterface::class => 'api_platform.validator ' ,
739
+ ManagerRegistry::class => 'doctrine ' ,
738
740
];
739
741
740
742
foreach ($ aliases as $ alias => $ service ) {
You can’t perform that action at this time.
0 commit comments