class EmailConfirmationMailer

Properties

protected SettingsRepositoryInterface $settings
protected Mailer $mailer
protected UrlGenerator $url
protected TranslatorInterface $translator

Methods

__construct(SettingsRepositoryInterface $settings, Mailer $mailer, UrlGenerator $url, TranslatorInterface $translator)

No description

subscribe(Dispatcher $events)

No description

generateToken(User $user, string $email)

No description

array
getEmailData(User $user, string $email)

<p>Get the data that should be made available to email templates.</p>

Details

__construct(SettingsRepositoryInterface $settings, Mailer $mailer, UrlGenerator $url, TranslatorInterface $translator)

Parameters

SettingsRepositoryInterface $settings
Mailer $mailer
UrlGenerator $url
TranslatorInterface $translator

subscribe(Dispatcher $events)

Parameters

Dispatcher $events

whenUserWasRegistered(UserWasRegistered $event)

Parameters

UserWasRegistered $event

whenUserEmailChangeWasRequested(UserEmailChangeWasRequested $event)

Parameters

UserEmailChangeWasRequested $event

protected EmailToken generateToken(User $user, string $email)

Parameters

User $user
string $email

Return Value

EmailToken

protected array getEmailData(User $user, string $email)

<p>Get the data that should be made available to email templates.</p>

Parameters

User $user
string $email

Return Value

array