29 if ( isset(
$params[
'sendConfirmationEmail'] ) ) {
30 $this->sendConfirmationEmail = (bool)
$params[
'sendConfirmationEmail'];
32 $this->dbProvider = $dbProvider;
50 $this->sendConfirmationEmail
52 && !$this->manager->getAuthenticationSessionData(
'no-email' )
55 $this->dbProvider->getPrimaryDatabase()->onTransactionCommitOrIdle(
56 function () use ( $user ) {
57 $user = $user->getInstanceForUpdate();
58 $status = $user->sendConfirmationMail();
59 $user->saveSettings();
60 if ( !$status->isGood() ) {
61 $this->logger->warning(
'Could not send confirmation email: ' .
62 $status->getWikiText( false, false,
'en' ) );
array $params
The job parameters.
A class containing constants representing the names of configuration variables.
const EnableEmail
Name constant for the EnableEmail setting, for use with Config::get()
const EmailAuthentication
Name constant for the EmailAuthentication setting, for use with Config::get()