Documentation

UserAuthenticator
in package
implements UserAuthenticatorInterface Uses FirewallAwareTrait

A decorator that delegates all method calls to the authenticator manager of the current firewall.

Tags
author

Wouter de Jong wouter@wouterj.nl

final

Table of Contents

Interfaces

UserAuthenticatorInterface

Methods

__construct()  : mixed
authenticateUser()  : Response|null
Convenience method to programmatically login a user and return a Response *if any* for success.

Methods

authenticateUser()

Convenience method to programmatically login a user and return a Response *if any* for success.

public authenticateUser(UserInterface $user, AuthenticatorInterface $authenticator, Request $request[, array<string|int, mixed> $badges = [] ]) : Response|null
Parameters
$user : UserInterface
$authenticator : AuthenticatorInterface
$request : Request
$badges : array<string|int, mixed> = []

Optionally, pass some Passport badges to use for the manual login

Return values
Response|null

        
On this page

Search results