Enhancements to Mailer exception handling fixes #79
This commit is contained in:
@ -14,10 +14,13 @@ namespace Da\User\Service;
|
||||
use Da\User\Contracts\ServiceInterface;
|
||||
use Da\User\Factory\TokenFactory;
|
||||
use Da\User\Model\User;
|
||||
use Da\User\Traits\MailAwareTrait;
|
||||
use yii\log\Logger;
|
||||
|
||||
class ResendConfirmationService implements ServiceInterface
|
||||
{
|
||||
use MailAwareTrait;
|
||||
|
||||
protected $model;
|
||||
protected $mailService;
|
||||
protected $logger;
|
||||
@ -34,8 +37,7 @@ class ResendConfirmationService implements ServiceInterface
|
||||
if ($this->model && !$this->model->getIsConfirmed()) {
|
||||
$token = TokenFactory::makeConfirmationToken($this->model->id);
|
||||
$this->mailService->setViewParam('token', $token);
|
||||
|
||||
return $this->mailService->run();
|
||||
return $this->sendMail($this->model);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user