/** * @inheritdoc */ public function init() { parent::init(); $this->mailer = $this->userPlusModule->mailer; $this->on(self::AFTER_REGISTER, [$this, 'afterRegister']); $this->on(self::AFTER_RECOVERY, [$this, 'afterRecovery']); $this->on(self::AFTER_RESET_PASSWORD, [$this, 'afterResetPassword']); }