|
30 | 30 | use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
|
31 | 31 | use Symfony\Component\DependencyInjection\Reference;
|
32 | 32 | use Symfony\Component\EventDispatcher\EventDispatcher;
|
| 33 | +use Symfony\Component\ExpressionLanguage\Expression; |
33 | 34 | use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
|
| 35 | +use Symfony\Component\HttpFoundation\RequestMatcher; |
34 | 36 | use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
35 | 37 | use Symfony\Component\HttpKernel\KernelEvents;
|
36 | 38 | use Symfony\Component\PasswordHasher\Hasher\NativePasswordHasher;
|
|
43 | 45 | use Symfony\Component\Security\Core\Authorization\Strategy\UnanimousStrategy;
|
44 | 46 | use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
|
45 | 47 | use Symfony\Component\Security\Core\User\ChainUserProvider;
|
| 48 | +use Symfony\Component\Security\Core\User\UserCheckerInterface; |
46 | 49 | use Symfony\Component\Security\Core\User\UserProviderInterface;
|
47 | 50 | use Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticatorManagerListener;
|
48 | 51 | use Symfony\Component\Security\Http\Event\CheckPassportEvent;
|
@@ -306,7 +309,7 @@ private function createFirewalls(array $config, ContainerBuilder $container)
|
306 | 309 |
|
307 | 310 | // register an autowire alias for the UserCheckerInterface if no custom user checker service is configured
|
308 | 311 | if (!$customUserChecker) {
|
309 |
| - $container->setAlias('Symfony\Component\Security\Core\User\UserCheckerInterface', new Alias('security.user_checker', false)); |
| 312 | + $container->setAlias(UserCheckerInterface::class, new Alias('security.user_checker', false)); |
310 | 313 | }
|
311 | 314 | }
|
312 | 315 |
|
@@ -842,7 +845,7 @@ private function createExpression(ContainerBuilder $container, string $expressio
|
842 | 845 | }
|
843 | 846 |
|
844 | 847 | $container
|
845 |
| - ->register($id, 'Symfony\Component\ExpressionLanguage\Expression') |
| 848 | + ->register($id, Expression::class) |
846 | 849 | ->setPublic(false)
|
847 | 850 | ->addArgument($expression)
|
848 | 851 | ;
|
@@ -881,7 +884,7 @@ private function createRequestMatcher(ContainerBuilder $container, string $path
|
881 | 884 | }
|
882 | 885 |
|
883 | 886 | $container
|
884 |
| - ->register($id, 'Symfony\Component\HttpFoundation\RequestMatcher') |
| 887 | + ->register($id, RequestMatcher::class) |
885 | 888 | ->setPublic(false)
|
886 | 889 | ->setArguments($arguments)
|
887 | 890 | ;
|
|
0 commit comments