Adapter
abstract class Adapter implements AdapterInterface, WithGroupsInterface
Base adapter.
Properties
protected UserRepository | $userRepository | User repository. | |
protected GroupRepository | $groupRepository | Group repository. | |
protected User|null | $user | User entity. |
Methods
No description
No description
Returns TRUE if we don't have an authenticated user and FALSE if we do.
Returns TRUE if we have an authenticated user and FALSE if we don't.
Creates a new user and returns the user object.
Creates a new group and returns the group object.
Activates a user based on the provided auth token.
Details
at line 50
setUserRepository(UserRepositoryInterface $userRepository)
Sets the user repository.
at line 24
UserRepository
getUserRepository()
at line 66
setGroupRepository(GroupRepositoryInterface $groupRepository)
Sets the group repository.
at line 24
GroupRepository
getGroupRepository()
at line 82
setUser(UserEntityInterface $user)
Sets the active user.
at line 90
bool
isGuest()
Returns TRUE if we don't have an authenticated user and FALSE if we do.
at line 98
bool
isLoggedIn()
Returns TRUE if we have an authenticated user and FALSE if we don't.
at line 113
User
createUser(string $email, string $username, string $password, bool $activate = false, array $properties = [])
Creates a new user and returns the user object.
at line 133
Group
createGroup(string $name, array $properties = [])
Creates a new group and returns the group object.
at line 149
User|bool
activateUser(string $token)
Activates a user based on the provided auth token.