AdapterInterface
interface AdapterInterface
Adapter interface.
Methods
string
getName()
Returns the adapter name.
getUserRepository()
Returns the user repository.
UserEntityInterface|null
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.
at line 32
setUserRepository(UserRepositoryInterface $userRepository)
Sets the user repository.
at line 39
UserRepositoryInterface
getUserRepository()
Returns the user repository.
at line 46
setUser(UserEntityInterface $user)
Sets the active user.
at line 53
UserEntityInterface|null
getUser()
Returns the active user or null if there isn't one.
at line 60
bool
isGuest()
Returns true if we don't have an authenticated user and false if we do.
at line 67
bool
isLoggedIn()
Returns true if we have an authenticated user and false if we don't.