class RegistrationService implements RegistrationServiceInterface (View source)

Properties

protected EntityManagerInterface $entityManager
protected Application $application
protected UserInfoRepository $userInfoRepository

Methods

__construct(Application $application, EntityManagerInterface $entityManager, UserInfoRepository $userInfoRepository)

No description

createSuperUser(string $uPasswordEncrypted, string $uEmail)

No description

create($data)

No description

createFromPublicRegistration($data)

No description

string
getNewUsernameFromUserDetails(string $email, string $suggestedUsername = '', string $firstName = '', string $lastName = '')

Create an unused username starting from user details.

string
stringToUsernameChunk(string $string)

No description

Details

__construct(Application $application, EntityManagerInterface $entityManager, UserInfoRepository $userInfoRepository)

Parameters

Application $application
EntityManagerInterface $entityManager
UserInfoRepository $userInfoRepository

createSuperUser(string $uPasswordEncrypted, string $uEmail)

Parameters

string $uPasswordEncrypted
string $uEmail

create($data)

Parameters

$data

createFromPublicRegistration($data)

Parameters

$data

string getNewUsernameFromUserDetails(string $email, string $suggestedUsername = '', string $firstName = '', string $lastName = '')

Create an unused username starting from user details.

Parameters

string $email The user's email address
string $suggestedUsername A suggestion about the username
string $firstName The user's first name
string $lastName The user's last name

Return Value

string

private string stringToUsernameChunk(string $string)

Parameters

string $string

Return Value

string