File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \FrameworkBundle \Tests \Controller ;
13
13
14
14
use Psr \Container \ContainerInterface ;
15
+ use Doctrine \Persistence \ManagerRegistry ;
15
16
use Symfony \Bundle \FrameworkBundle \Controller \AbstractController ;
16
17
use Symfony \Component \DependencyInjection \Container ;
17
18
use Symfony \Component \DependencyInjection \ParameterBag \ContainerBag ;
@@ -39,7 +40,7 @@ public function testSubscribedServices()
39
40
'security.authorization_checker ' => '?Symfony \\Component \\Security \\Core \\Authorization \\AuthorizationCheckerInterface ' ,
40
41
'templating ' => '?Symfony \\Component \\Templating \\EngineInterface ' ,
41
42
'twig ' => '?Twig \\Environment ' ,
42
- 'doctrine ' => '?Doctrine \\Common \\Persistence \\ManagerRegistry ' ,
43
+ 'doctrine ' => interface_exists (ManagerRegistry::class) ? ' ? ' .ManagerRegistry::class : '?Doctrine \\Common \\Persistence \\ManagerRegistry ' ,
43
44
'form.factory ' => '?Symfony \\Component \\Form \\FormFactoryInterface ' ,
44
45
'parameter_bag ' => '?Symfony \\Component \\DependencyInjection \\ParameterBag \\ContainerBagInterface ' ,
45
46
'message_bus ' => '?Symfony \\Component \\Messenger \\MessageBusInterface ' ,
You can’t perform that action at this time.
0 commit comments