EntityUserProvider
in package
implements
UserProviderInterface, PasswordUpgraderInterface
Wrapper around a Doctrine ObjectManager.
Provides provisioning for Doctrine entity users.
Tags
Interfaces, Classes, Traits and Enums
- UserProviderInterface
- Represents a class that loads UserInterface objects from some source for the authentication system.
- PasswordUpgraderInterface
Table of Contents
- $class : mixed
- $classOrAlias : mixed
- $managerName : mixed
- $property : mixed
- $registry : mixed
- __construct() : mixed
- loadUserByUsername() : UserInterface
- Loads the user for the given username.
- refreshUser() : UserInterface
- Refreshes the user.
- supportsClass() : bool
- Whether this provider supports the given user class.
- upgradePassword() : void
- Upgrades the encoded password of a user, typically for using a better hash algorithm.
- getClass() : string
- getClassMetadata() : ClassMetadata
- getObjectManager() : ObjectManager
- getRepository() : ObjectRepository
Properties
$class
private
mixed
$class
$classOrAlias
private
mixed
$classOrAlias
$managerName
private
mixed
$managerName
$property
private
mixed
$property
$registry
private
mixed
$registry
Methods
__construct()
public
__construct(ManagerRegistry $registry, string $classOrAlias[, string $property = null ][, string $managerName = null ]) : mixed
Parameters
- $registry : ManagerRegistry
- $classOrAlias : string
- $property : string = null
- $managerName : string = null
Return values
mixed —loadUserByUsername()
Loads the user for the given username.
public
loadUserByUsername(mixed $username) : UserInterface
Parameters
- $username : mixed
-
The username
Return values
UserInterface —refreshUser()
Refreshes the user.
public
refreshUser(UserInterface $user) : UserInterface
Parameters
- $user : UserInterface
Return values
UserInterface —supportsClass()
Whether this provider supports the given user class.
public
supportsClass(mixed $class) : bool
Parameters
- $class : mixed
Return values
bool —upgradePassword()
Upgrades the encoded password of a user, typically for using a better hash algorithm.
public
upgradePassword(UserInterface $user, string $newEncodedPassword) : void
Parameters
- $user : UserInterface
- $newEncodedPassword : string
Return values
void —getClass()
private
getClass() : string
Return values
string —getClassMetadata()
private
getClassMetadata() : ClassMetadata
Return values
ClassMetadata —getObjectManager()
private
getObjectManager() : ObjectManager
Return values
ObjectManager —getRepository()
private
getRepository() : ObjectRepository