MediaWiki master
MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender Class Reference

Wrapper for IEmailer for sending confirm email sender. More...

Public Member Functions

 __construct (private readonly ServiceOptions $options, private readonly HookRunner $hookRunner, private readonly UserFactory $userFactory, private readonly IEmailer $emailer, private readonly ConfirmEmailBuilderFactory $confirmEmailBuilderFactory)
 
 sendConfirmationMail (IContextSource $ctx, string $type, ConfirmEmailData $data)
 Send the email address confirmation message.
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 
const EMAIL_TYPE_CHANGED = 'changed'
 
const EMAIL_TYPE_CREATED = 'created'
 
const EMAIL_TYPE_SET = 'set'
 

Detailed Description

Wrapper for IEmailer for sending confirm email sender.

Definition at line 20 of file ConfirmEmailSender.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender::__construct ( private readonly ServiceOptions $options,
private readonly HookRunner $hookRunner,
private readonly UserFactory $userFactory,
private readonly IEmailer $emailer,
private readonly ConfirmEmailBuilderFactory $confirmEmailBuilderFactory )

Definition at line 30 of file ConfirmEmailSender.php.

Member Function Documentation

◆ sendConfirmationMail()

MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender::sendConfirmationMail ( IContextSource $ctx,
string $type,
ConfirmEmailData $data )

Send the email address confirmation message.

This method: (1) Calls the builder to build the email message (2) Runs onUserSendConfirmationMail to allow extensions to modify the email (3) Calls IEmailer to actually send the message out

Definition at line 89 of file ConfirmEmailSender.php.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender::CONSTRUCTOR_OPTIONS
Initial value:
= [
]
const PasswordSender
Name constant for the PasswordSender setting, for use with Config::get()

Definition at line 26 of file ConfirmEmailSender.php.

◆ EMAIL_TYPE_CHANGED

const MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender::EMAIL_TYPE_CHANGED = 'changed'

Definition at line 23 of file ConfirmEmailSender.php.

◆ EMAIL_TYPE_CREATED

const MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender::EMAIL_TYPE_CREATED = 'created'

Definition at line 22 of file ConfirmEmailSender.php.

◆ EMAIL_TYPE_SET

const MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender::EMAIL_TYPE_SET = 'set'

Definition at line 24 of file ConfirmEmailSender.php.


The documentation for this class was generated from the following file: