30 if ( isset(
$params[
'sendConfirmationEmail'] ) ) {
31 $this->sendConfirmationEmail = (bool)
$params[
'sendConfirmationEmail'];
33 $this->dbProvider = $dbProvider;
51 $this->sendConfirmationEmail
53 && !$this->manager->getAuthenticationSessionData(
'no-email' )
56 $this->dbProvider->getPrimaryDatabase()->onTransactionCommitOrIdle(
57 function () use ( $user ) {
58 $user = $user->getInstanceForUpdate();
59 $status = $user->sendConfirmationMail();
60 $user->saveSettings();
61 if ( !$status->isGood() ) {
62 $this->logger->warning(
'Could not send confirmation email: ' .
63 $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()