Skip to content

Commit ce8744d

Browse files
committed
minor #5081 [Cookbook][Session] some language tweaks (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [Cookbook][Session] some language tweaks | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | Commits ------- 5377525 some language tweaks
2 parents e9b9376 + 5377525 commit ce8744d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/session/locale_sticky_session.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ before the ``FirewallListener``, which is responsible for handling authenticatio
116116
setting the user token on the ``TokenStorage``, you have no access to the user
117117
which is logged in.
118118

119-
Let's pretend you have defined a ``locale"`` property on your ``User`` entity
120-
and you want to use this as the locale for the given user. To accomplish this,
121-
you can hook into the login process and update the user's session with the
122-
this locale value before they are redirected to their first page.
119+
Assumed you have defined a ``locale`` property on your ``User`` entity and
120+
you want to use this as the locale for the given user. To accomplish this,
121+
you can hook into the login process and update the user's session with this
122+
locale value before they are redirected to their first page.
123123

124124
To do this, you need an event listener for the ``security.interactive_login``
125125
event:

0 commit comments

Comments
 (0)