Skip to content

UserProviderInterface loadByUsername method has a misleading name #5678

@lmammino

Description

@lmammino

From what i've seen in some custom user providers, this method is used also to load user by email, facebookId and other kind of identifier, so IMHO it has a somewhat misleading name.
I know this would create a backward compatibility break but i think it would be more appropriate to rename it to a more generic loadByIdentifier or something like that.

Directly from the doc: http://symfony.com/doc/current/cookbook/security/entity_provider.html#authenticating-someone-with-a-custom-entity-provider . Here this method is used to load the user by username or by email.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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