interface AdapterInterface

Adapter interface.

Methods

string
getName()

Returns the adapter name.

setUserRepository(UserRepositoryInterface $userRepository)

Sets the user repository.

getUserRepository()

Returns the user repository.

setUser(UserEntityInterface $user)

Sets the active user.

getUser()

Returns the active user or null if there isn't one.

bool
isGuest()

Returns true if we don't have an authenticated user and false if we do.

bool
isLoggedIn()

Returns true if we have an authenticated user and false if we don't.

Details

at line 25
string getName()

Returns the adapter name.

Return Value

string

at line 32
setUserRepository(UserRepositoryInterface $userRepository)

Sets the user repository.

Parameters

UserRepositoryInterface $userRepository User repository

at line 39
UserRepositoryInterface getUserRepository()

Returns the user repository.

at line 46
setUser(UserEntityInterface $user)

Sets the active user.

Parameters

UserEntityInterface $user User entity

at line 53
UserEntityInterface|null getUser()

Returns the active user or null if there isn't one.

Return Value

UserEntityInterface|null

at line 60
bool isGuest()

Returns true if we don't have an authenticated user and false if we do.

Return Value

bool

at line 67
bool isLoggedIn()

Returns true if we have an authenticated user and false if we don't.

Return Value

bool