UserService
class UserService implements UserServiceInterface
Main services related to User
Properties
private ConfigServiceInterface | $configService | Stores ConfigServiceInterface | |
private EntityManagerInterface | $em | Stores EntityManagerInterface | |
private UserPasswordEncoderInterface | $passwordEncoder | Stores UserPasswordEncoderInterface | |
private Request | $request | Stores curent Request | |
private RouterInterface | $router | Stores RouterInterface | |
private UserEmailInterface | $userEmail | Stores UserEmailInterface | |
private ServiceToolsInterface | $serviceTools | Stores ServiceToolsInterface |
Methods
No description
Adds the user
Adds attempt for signin
Adds role to user
Archives the user using Stored Procedure
Checks if profile is well filled
Deletes the user
Deletes role to user
Exports user's data
Finds user by email
Finds user by id
Finds user by identifier
Finds user by socialId
Finds user by token
Gets all the users
Gets the User entity used
Modifies the user
Modifies role to user
Registers the user
Confirms user's signup
Details
at line 79
__construct(ConfigServiceInterface $configService, EntityManagerInterface $em, UserPasswordEncoderInterface $passwordEncoder, RequestStack $requestStack, RouterInterface $router, ServiceToolsInterface $serviceTools, UserEmailInterface $userEmail)
at line 101
add($user)
Adds the user
at line 122
array
addAttempt($error)
Adds attempt for signin
at line 167
addRole($user, string $role)
Adds role to user
at line 178
archive($userId)
Archives the user using Stored Procedure
at line 192
checkProfile($user)
Checks if profile is well filled
at line 210
delete($user)
Deletes the user
at line 229
deleteRole($user, string $role)
Deletes role to user
at line 240
Response
export($user, $format)
Exports user's data
at line 283
UserLight
findUserByEmail($email)
Finds user by email
at line 295
UserLight
findUserById($id)
Finds user by id
at line 307
UserLight
findUserByIdentifier($identifier)
Finds user by identifier
at line 319
UserLight
findUserBySocialId($socialId)
Finds user by socialId
at line 331
UserLight
findUserByToken($token)
Finds user by token
at line 343
array
getUsersAll()
Gets all the users
at line 354
string
getUserEntity()
Gets the User entity used
at line 362
modify($user)
Modifies the user
at line 381
modifyRoles($user, array $roles)
Modifies role to user
at line 394
signup($user)
Registers the user
at line 413
signupConfirm($user)
Confirms user's signup