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)

Get the data that should be made available to email templates.

sendConfirmationEmail( User $user, array $data)

No description

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

No description

ResponseInterface
handle( ServerRequestInterface $request)

{@inheritdoc}

Details

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

Parameters

User $user
string $email

Return Value

EmailToken

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

Get the data that should be made available to email templates.

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)

{@inheritdoc}

Parameters

ServerRequestInterface $request

Return Value

ResponseInterface