Skip to content

Commit 76c68de

Browse files
committed
remove AbstractController's services marked for deletion
1 parent d10e6fb commit 76c68de

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Controller/AbstractController.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Controller;
1313

14-
use Doctrine\Persistence\ManagerRegistry;
1514
use Psr\Container\ContainerInterface;
1615
use Psr\Link\LinkInterface;
1716
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
@@ -32,7 +31,6 @@
3231
use Symfony\Component\HttpFoundation\StreamedResponse;
3332
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
3433
use Symfony\Component\HttpKernel\HttpKernelInterface;
35-
use Symfony\Component\Messenger\MessageBusInterface;
3634
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
3735
use Symfony\Component\Routing\RouterInterface;
3836
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
@@ -93,13 +91,10 @@ public static function getSubscribedServices(): array
9391
'serializer' => '?'.SerializerInterface::class,
9492
'security.authorization_checker' => '?'.AuthorizationCheckerInterface::class,
9593
'twig' => '?'.Environment::class,
96-
'doctrine' => '?'.ManagerRegistry::class, // to be removed in 6.0
9794
'form.factory' => '?'.FormFactoryInterface::class,
9895
'security.token_storage' => '?'.TokenStorageInterface::class,
9996
'security.csrf.token_manager' => '?'.CsrfTokenManagerInterface::class,
10097
'parameter_bag' => '?'.ContainerBagInterface::class,
101-
'message_bus' => '?'.MessageBusInterface::class, // to be removed in 6.0
102-
'messenger.default_bus' => '?'.MessageBusInterface::class, // to be removed in 6.0
10398
];
10499
}
105100

Tests/Controller/AbstractControllerTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,8 @@ public function testSubscribedServices()
6868
'serializer' => '?Symfony\\Component\\Serializer\\SerializerInterface',
6969
'security.authorization_checker' => '?Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface',
7070
'twig' => '?Twig\\Environment',
71-
'doctrine' => '?Doctrine\\Persistence\\ManagerRegistry',
7271
'form.factory' => '?Symfony\\Component\\Form\\FormFactoryInterface',
7372
'parameter_bag' => '?Symfony\\Component\\DependencyInjection\\ParameterBag\\ContainerBagInterface',
74-
'message_bus' => '?Symfony\\Component\\Messenger\\MessageBusInterface',
75-
'messenger.default_bus' => '?Symfony\\Component\\Messenger\\MessageBusInterface',
7673
'security.token_storage' => '?Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface',
7774
'security.csrf.token_manager' => '?Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface',
7875
];

0 commit comments

Comments
 (0)