8000 [Security] fixed fatal error · symfony/symfony@4e0021b · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e0021b

Browse files
committed
[Security] fixed fatal error
1 parent 2763227 commit 4e0021b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ public function handle(GetResponseEvent $event)
5151
}
5252

5353
try {
54+
$token = new AnonymousToken($this->key, 'anon.', array());
5455
if (null !== $this->authenticationManager) {
55-
$token = $this->authenticationManager->authenticate(new AnonymousToken($this->key, 'anon.', array()));
56+
$token = $this->authenticationManager->authenticate($token);
5657
}
5758

5859
$this->context->setToken($token);

0 commit comments

Comments
 (0)
0