Skip to content

Sticky Locale based on User Entity #4862

@peterrehm

Description

@peterrehm

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy