diff options
author | Johannes Schmitt <schmittjoh@gmail.com> | 2011-05-05 08:35:02 +0200 |
---|---|---|
committer | Johannes Schmitt <schmittjoh@gmail.com> | 2011-05-05 08:38:07 +0200 |
commit | 8ed913984759757b9063ca424a717bd9e3ec81e9 (patch) | |
tree | bb9ab59c38e4237b00c4b888aeb4a6c17e2a9d4d | |
parent | 66c87668963c3b80d770e998d7c68a4dd030dcc2 (diff) | |
download | symfony-security-8ed913984759757b9063ca424a717bd9e3ec81e9.zip symfony-security-8ed913984759757b9063ca424a717bd9e3ec81e9.tar.gz symfony-security-8ed913984759757b9063ca424a717bd9e3ec81e9.tar.bz2 |
[Security][HttpFoundation] splits Request::hasSession() into hasSession(), and hasPreviousSession()
This closes #774, and fixes #772.
-rw-r--r-- | Http/Firewall/ContextListener.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/Firewall/ContextListener.php b/Http/Firewall/ContextListener.php index a20eaab..331a1e3 100644 --- a/Http/Firewall/ContextListener.php +++ b/Http/Firewall/ContextListener.php @@ -62,7 +62,7 @@ class ContextListener implements ListenerInterface { $request = $event->getRequest(); - $session = $request->hasSession() ? $request->getSession() : null; + $session = $request->hasPreviousSession() ? $request->getSession() : null; if (null === $session || null === $token = $session->get('_security_'.$this->contextKey)) { $this->context->setToken(null); |