Skip to content

Commit 5b4c8cf

Browse files
Fix merge
1 parent 8906fdb commit 5b4c8cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Controller/AbstractControllerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bundle\FrameworkBundle\Tests\Controller;
1313

1414
use Psr\Container\ContainerInterface;
15+
use Doctrine\Persistence\ManagerRegistry;
1516
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1617
use Symfony\Component\DependencyInjection\Container;
1718
use Symfony\Component\DependencyInjection\ParameterBag\ContainerBag;
@@ -39,7 +40,7 @@ public function testSubscribedServices()
3940
'security.authorization_checker' => '?Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface',
4041
'templating' => '?Symfony\\Component\\Templating\\EngineInterface',
4142
'twig' => '?Twig\\Environment',
42-
'doctrine' => '?Doctrine\\Common\\Persistence\\ManagerRegistry',
43+
'doctrine' => interface_exists(ManagerRegistry::class) ? '?'.ManagerRegistry::class : '?Doctrine\\Common\\Persistence\\ManagerRegistry',
4344
'form.factory' => '?Symfony\\Component\\Form\\FormFactoryInterface',
4445
'parameter_bag' => '?Symfony\\Component\\DependencyInjection\\ParameterBag\\ContainerBagInterface',
4546
'message_bus' => '?Symfony\\Component\\Messenger\\MessageBusInterface',

0 commit comments

Comments
 (0)