This repository was archived by the owner on May 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public function handle(GetResponseEvent $event)
101
101
}
102
102
103
103
/**
104
- * Writes the SecurityContext to the session.
104
+ * Writes the security token into the session.
105
105
*
106
106
* @param FilterResponseEvent $event A FilterResponseEvent instance
107
107
*/
@@ -121,10 +121,6 @@ public function onKernelResponse(FilterResponseEvent $event)
121
121
$ request = $ event ->getRequest ();
122
122
$ session = $ request ->getSession ();
123
123
124
- if (null === $ session ) {
125
- return ;
126
- }
127
-
128
124
if ((null === $ token = $ this ->tokenStorage ->getToken ()) || ($ token instanceof AnonymousToken)) {
129
125
if ($ request ->hasPreviousSession ()) {
130
126
$ session ->remove ($ this ->sessionKey );
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ interface RememberMeServicesInterface
36
36
const COOKIE_ATTR_NAME = '_security_remember_me_cookie ' ;
37
37
38
38
/**
39
- * This method will be called whenever the SecurityContext does not contain
40
- * an TokenInterface object and the framework wishes to provide an implementation
39
+ * This method will be called whenever the TokenStorage does not contain
40
+ * a TokenInterface object and the framework wishes to provide an implementation
41
41
* with an opportunity to authenticate the request using remember-me capabilities.
42
42
*
43
43
* No attempt whatsoever is made to determine whether the browser has requested
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ interface SessionAuthenticationStrategyInterface
27
27
/**
28
28
* This performs any necessary changes to the session.
29
29
*
30
- * This method is called before the SecurityContext is populated with a
30
+ * This method is called before the TokenStorage is populated with a
31
31
* Token, and only by classes inheriting from AbstractAuthenticationListener.
32
32
*
33
33
* @param Request $request
You can’t perform that action at this time.
0 commit comments