summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorIltar van der Berg <ivanderberg@hostnet.nl>2015-06-15 08:46:44 +0200
committerIltar van der Berg <ivanderberg@hostnet.nl>2015-06-15 08:46:44 +0200
commit7659f7dc7bf230b1adafe0612a8702da2811bbf6 (patch)
tree37cc30ccc3776710f8062577fac165907f52a76f /Http
parentf661d9367f281bce3704211a06028b82c1ed3314 (diff)
downloadsymfony-security-7659f7dc7bf230b1adafe0612a8702da2811bbf6.zip
symfony-security-7659f7dc7bf230b1adafe0612a8702da2811bbf6.tar.gz
symfony-security-7659f7dc7bf230b1adafe0612a8702da2811bbf6.tar.bz2
Added a small Upgrade note regarding security.context
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/ContextListener.php6
-rw-r--r--Http/RememberMe/RememberMeServicesInterface.php4
-rw-r--r--Http/Session/SessionAuthenticationStrategyInterface.php2
3 files changed, 4 insertions, 8 deletions
diff --git a/Http/Firewall/ContextListener.php b/Http/Firewall/ContextListener.php
index 013586c..e1ec46d 100644
--- a/Http/Firewall/ContextListener.php
+++ b/Http/Firewall/ContextListener.php
@@ -101,7 +101,7 @@ class ContextListener implements ListenerInterface
}
/**
- * Writes the SecurityContext to the session.
+ * Writes the security token into the session.
*
* @param FilterResponseEvent $event A FilterResponseEvent instance
*/
@@ -121,10 +121,6 @@ class ContextListener implements ListenerInterface
$request = $event->getRequest();
$session = $request->getSession();
- if (null === $session) {
- return;
- }
-
if ((null === $token = $this->tokenStorage->getToken()) || ($token instanceof AnonymousToken)) {
if ($request->hasPreviousSession()) {
$session->remove($this->sessionKey);
diff --git a/Http/RememberMe/RememberMeServicesInterface.php b/Http/RememberMe/RememberMeServicesInterface.php
index 7adb827..5750a8c 100644
--- a/Http/RememberMe/RememberMeServicesInterface.php
+++ b/Http/RememberMe/RememberMeServicesInterface.php
@@ -36,8 +36,8 @@ interface RememberMeServicesInterface
const COOKIE_ATTR_NAME = '_security_remember_me_cookie';
/**
- * This method will be called whenever the SecurityContext does not contain
- * an TokenInterface object and the framework wishes to provide an implementation
+ * This method will be called whenever the TokenStorage does not contain
+ * a TokenInterface object and the framework wishes to provide an implementation
* with an opportunity to authenticate the request using remember-me capabilities.
*
* No attempt whatsoever is made to determine whether the browser has requested
diff --git a/Http/Session/SessionAuthenticationStrategyInterface.php b/Http/Session/SessionAuthenticationStrategyInterface.php
index 9cb95d8..dd0c381 100644
--- a/Http/Session/SessionAuthenticationStrategyInterface.php
+++ b/Http/Session/SessionAuthenticationStrategyInterface.php
@@ -27,7 +27,7 @@ interface SessionAuthenticationStrategyInterface
/**
* This performs any necessary changes to the session.
*
- * This method is called before the SecurityContext is populated with a
+ * This method is called before the TokenStorage is populated with a
* Token, and only by classes inheriting from AbstractAuthenticationListener.
*
* @param Request $request