You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when onLocaleChange is dispatched, there is no yet token
$securityContext->getToken(); // returns null
So it's impossible to subscribe to this event to update locale column in users table.
I see that this event was dispatched in LocaleController before.
What is the reason of removing it? How to update user entity each time locale is changed?
The text was updated successfully, but these errors were encountered:
Hi, I'm also trying to listen to that event, and indeed security token is null. any idea why ? working with symfony 2.6/2.7, tried with deprecated security.context and security.token_storage.
Hi,
when
onLocaleChange
is dispatched, there is no yet tokenSo it's impossible to subscribe to this event to update
locale
column inusers
table.I see that this event was dispatched in LocaleController before.
What is the reason of removing it? How to update user entity each time locale is changed?
The text was updated successfully, but these errors were encountered: