Commit 83dd3c7d by Carsten Brandt

Merge pull request #4107 from SDKiller/patch-2

Update BaseMessage.php
parents 648b9b70 eb60aaec
...@@ -41,7 +41,7 @@ abstract class BaseMessage extends Object implements MessageInterface ...@@ -41,7 +41,7 @@ abstract class BaseMessage extends Object implements MessageInterface
public function send(MailerInterface $mailer = null) public function send(MailerInterface $mailer = null)
{ {
if ($mailer === null && $this->mailer === null) { if ($mailer === null && $this->mailer === null) {
$mailer = Yii::$app->getMail(); $mailer = Yii::$app->getMailer();
} elseif ($mailer === null) { } elseif ($mailer === null) {
$mailer = $this->mailer; $mailer = $this->mailer;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment