class SendConfirmationEmailController implements RequestHandlerInterface

Traits

Properties

protected SettingsRepositoryInterface $settings
protected Queue $queue
protected UrlGenerator $url
protected TranslatorInterface $translator

Methods

generateToken(User $user, string $email)

No description

array
getEmailData(User $user, EmailToken $token)

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

sendConfirmationEmail(User $user, array $data)

No description

__construct(SettingsRepositoryInterface $settings, Queue $queue, UrlGenerator $url, TranslatorInterface $translator)

No description

ResponseInterface
handle(ServerRequestInterface $request)

<p>{@inheritdoc}</p>

Details

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

Parameters

User $user
string $email

Return Value

EmailToken

protected array getEmailData(User $user, EmailToken $token)

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

Parameters

User $user
EmailToken $token

Return Value

array

protected sendConfirmationEmail(User $user, array $data)

Parameters

User $user
array $data

__construct(SettingsRepositoryInterface $settings, Queue $queue, UrlGenerator $url, TranslatorInterface $translator)

Parameters

SettingsRepositoryInterface $settings
Queue $queue
UrlGenerator $url
TranslatorInterface $translator

ResponseInterface handle(ServerRequestInterface $request)

<p>{@inheritdoc}</p>

Parameters

ServerRequestInterface $request

Return Value

ResponseInterface