|
MediaWiki master
|
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' |
Wrapper for IEmailer for sending confirm email sender.
Definition at line 20 of file ConfirmEmailSender.php.
| 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.
| 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.
| const MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender::CONSTRUCTOR_OPTIONS |
Definition at line 26 of file ConfirmEmailSender.php.
| const MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender::EMAIL_TYPE_CHANGED = 'changed' |
Definition at line 23 of file ConfirmEmailSender.php.
| const MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender::EMAIL_TYPE_CREATED = 'created' |
Definition at line 22 of file ConfirmEmailSender.php.
| const MediaWiki\Mail\ConfirmEmail\ConfirmEmailSender::EMAIL_TYPE_SET = 'set' |
Definition at line 24 of file ConfirmEmailSender.php.