Skip to content

Mention autowiring in an AbstractAuthenticator? #14833

Closed
@PaulCombal

Description

@PaulCombal

Basically the title.
On this page, we can find the following code:

$passport = new Passport(
    new UserBadge($email, function ($userIdentifier) {
        return $this->userRepository->findOneBy(['email' => $userIdentifier]);
    }),
    $credentials
);

I had to guess that $this->userrepository was obtained by using autowiring, but the page makes no mention of autowiring at all. Is that by design?
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    SecurityhasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions