From 5377525fd07308a0ab9af105ece62170acacaaad Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 13 Mar 2015 20:17:10 +0100 Subject: [PATCH] some language tweaks --- cookbook/session/locale_sticky_session.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cookbook/session/locale_sticky_session.rst b/cookbook/session/locale_sticky_session.rst index 3946ed85a87..09d58a606e7 100644 --- a/cookbook/session/locale_sticky_session.rst +++ b/cookbook/session/locale_sticky_session.rst @@ -116,10 +116,10 @@ before the ``FirewallListener``, which is responsible for handling authenticatio setting the user token on the ``TokenStorage``, you have no access to the user which is logged in. -Let's pretend you have defined a ``locale"`` property on your ``User`` entity -and you want to use this as the locale for the given user. To accomplish this, -you can hook into the login process and update the user's session with the -this locale value before they are redirected to their first page. +Assumed you have defined a ``locale`` property on your ``User`` entity and +you want to use this as the locale for the given user. To accomplish this, +you can hook into the login process and update the user's session with this +locale value before they are redirected to their first page. To do this, you need an event listener for the ``security.interactive_login`` event: