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)

No description

Parameters

Application $application
EntityManagerInterface $entityManager
UserInfoRepository $userInfoRepository

createSuperUser(string $uPasswordEncrypted, string $uEmail)

No description

Parameters

string $uPasswordEncrypted
string $uEmail

create($data)

No description

Parameters

$data

createFromPublicRegistration($data)

No description

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)

No description

Parameters

string $string

Return Value

string