Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token is null when onLocaleChange is dispatched #133

Open
maks-rafalko opened this issue Nov 29, 2014 · 2 comments
Open

Token is null when onLocaleChange is dispatched #133

maks-rafalko opened this issue Nov 29, 2014 · 2 comments

Comments

@maks-rafalko
Copy link
Contributor

Hi,

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?

@vlastv
Copy link

vlastv commented May 28, 2015

ping...

@jmeyo
Copy link
Contributor

jmeyo commented Jun 5, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants