diff options
-rw-r--r-- | Http/Firewall/AnonymousAuthenticationListener.php | 3 |
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); |