File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,15 @@ unauthenticated access (e.g. the login page):
120120 .. code-block :: php
121121
122122 // config/packages/security.php
123- use Symfony\Component\Security\Http\Firewall\AccessListener ;
123+ use Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter ;
124124
125125 $container->loadFromExtension('security', [
126126 'enable_authenticator_manager' => true,
127127
128128 // ...
129129 'access_control' => [
130130 // allow unauthenticated users to access the login form
131- ['path' => '^/admin/login', 'roles' => AccessListener ::PUBLIC_ACCESS],
131+ ['path' => '^/admin/login', 'roles' => AuthenticatedVoter ::PUBLIC_ACCESS],
132132
133133 // but require authentication for all other admin routes
134134 ['path' => '^/admin', 'roles' => 'ROLE_ADMIN'],
You can’t perform that action at this time.
0 commit comments