mediatekformation

UserLoaderInterface

Represents a class that loads UserInterface objects from Doctrine source for the authentication system.

This interface is meant to facilitate the loading of a User from Doctrine source using a custom method. If you want to implement your own logic of retrieving the user from Doctrine your repository should implement this interface.

Tags
see
UserInterface
author

Michal Trojanowski michal@kmt-studio.pl

Table of Contents

loadUserByUsername()  : UserInterface|null
Loads the user for the given username.

Methods

loadUserByUsername()

Loads the user for the given username.

public loadUserByUsername(string $username) : UserInterface|null

This method must return null if the user is not found.

Parameters
$username : string

The username

Return values
UserInterface|null

Search results