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 action token.
Details
at line 48
setUserRepository(UserRepositoryInterface $userRepository)
Sets the user repository.
at line 22
UserRepository
getUserRepository()
at line 64
setGroupRepository(GroupRepositoryInterface $groupRepository)
Sets the group repository.
at line 22
GroupRepository
getGroupRepository()
at line 80
setUser(UserEntityInterface $user)
Sets the active user.
at line 88
bool
isGuest()
Returns TRUE if we don't have an authenticated user and FALSE if we do.
at line 96
bool
isLoggedIn()
Returns TRUE if we have an authenticated user and FALSE if we don't.
at line 111
User
createUser(string $email, string $username, string $password, bool $activate = false, array $properties = [])
Creates a new user and returns the user object.
at line 131
Group
createGroup(string $name, array $properties = [])
Creates a new group and returns the group object.
at line 147
bool
activateUser(string $token)
Activates a user based on the provided action token.