CustomerProvider implements UserProviderInterface
Table of Contents
$customerRepository | CustomerRepository | |
---|---|---|
__construct() | mixed | |
loadUserByUsername() | Loads the user for the given username. | UserInterface |
refreshUser() | Refreshes the user. | UserInterface |
supportsClass() | Whether this provider supports the given user class. | bool |
Properties
$customerRepository
protected
CustomerRepository
$customerRepository
Methods
__construct()
public
__construct(
$customerRepository :
CustomerRepository
)
: mixed
Parameters
- $customerRepository : CustomerRepository
Return values
mixedloadUserByUsername()
Loads the user for the given username.
public
loadUserByUsername(
$username :
string
)
: UserInterface
This method must throw UsernameNotFoundException if the user is not found.
Parameters
- $username : string
The username
Tags
Return values
UserInterfacerefreshUser()
Refreshes the user.
public
refreshUser(
$user :
UserInterface
)
: UserInterface
It is up to the implementation to decide if the user data should be totally reloaded (e.g. from the database), or if the UserInterface object can just be merged into some internal array of users / identity map.
Parameters
- $user : UserInterface
Tags
Return values
UserInterfacesupportsClass()
Whether this provider supports the given user class.
public
supportsClass(
$class :
string
)
: bool
Parameters
- $class : string