EC-CUBE4 APIドキュメント

MemberProvider implements UserProviderInterface

Table of Contents

$memberRepository MemberRepository
__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

Methods

loadUserByUsername()

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
throws
UsernameNotFoundException

if the user is not found

Return values
UserInterface

refreshUser()

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
throws
UnsupportedUserException

if the user is not supported

Return values
UserInterface

supportsClass()

Whether this provider supports the given user class.

public supportsClass( $class : string ) : bool
Parameters
$class : string
Return values
bool

Search results