summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2014-09-27 12:02:32 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2014-09-27 12:02:32 +0200
commit1e5a6bb4b4393102d52b294a9e426a2bafa877b4 (patch)
treedadb62e6c7baaa55df49c90e31540b87f9674349 /Http
parent7eaad004a9251cf004f201bfc87b424b97f89f05 (diff)
downloadsymfony-security-1e5a6bb4b4393102d52b294a9e426a2bafa877b4.zip
symfony-security-1e5a6bb4b4393102d52b294a9e426a2bafa877b4.tar.gz
symfony-security-1e5a6bb4b4393102d52b294a9e426a2bafa877b4.tar.bz2
[Security] fixed fatal error
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/AnonymousAuthenticationListener.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Http/Firewall/AnonymousAuthenticationListener.php b/Http/Firewall/AnonymousAuthenticationListener.php
index 72f0071..e3c35a0 100644
--- a/Http/Firewall/AnonymousAuthenticationListener.php
+++ b/Http/Firewall/AnonymousAuthenticationListener.php
@@ -51,8 +51,9 @@ class AnonymousAuthenticationListener implements ListenerInterface
}
try {
+ $token = new AnonymousToken($this->key, 'anon.', array());
if (null !== $this->authenticationManager) {
- $token = $this->authenticationManager->authenticate(new AnonymousToken($this->key, 'anon.', array()));
+ $token = $this->authenticationManager->authenticate($token);
}
$this->context->setToken($token);