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
I think it is a common requirement that you want to define your locale based on
a database value. E.g. the locale property of the user entity.
There is no direct way to access the user in the LocaleListener hence it is registered
before the FirewallListener and so no token exists.
How about an additional chapter explaining how to achieve this adding a listener to
the security.interactive_login event and storing the locale in this step?
If this is wanted I might find the time for a draft.
The text was updated successfully, but these errors were encountered:
… (peterrehm)
This PR was merged into the 2.3 branch.
Discussion
----------
Added chapter about the locale based on the user entity
| Q | A
| ------------- | ---
| Doc fix? | no
| New docs? | yes
| Applies to | 2.3
| Fixed tickets | #4862
Commits
-------
1aaa491 Updated as per feedback.
0fc72a8 Updated as per feedback
6e986e1 Updated wording of the chapter as per discussion
66e21a9 Added chapter about the locale based on the user entity
I think it is a common requirement that you want to define your locale based on
a database value. E.g. the locale property of the user entity.
There is no direct way to access the user in the LocaleListener hence it is registered
before the FirewallListener and so no token exists.
How about an additional chapter explaining how to achieve this adding a listener to
the security.interactive_login event and storing the locale in this step?
If this is wanted I might find the time for a draft.
The text was updated successfully, but these errors were encountered: