| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function send(NotifiableInterface $recipient, NotificationInterface $notification) |
||
| 38 | { |
||
| 39 | /** |
||
| 40 | * @var $message MailMessage |
||
| 41 | */ |
||
| 42 | $message = $notification->exportFor('mail'); |
||
| 43 | return $this->mailer->compose($message->view, $message->viewData) |
||
| 44 | ->setFrom(isset($message->from) ? $message->from : $this->from) |
||
| 45 | ->setTo($recipient->routeNotificationFor('mail')) |
||
| 46 | ->setSubject($message->subject) |
||
| 47 | ->send(); |
||
| 48 | } |
||
| 50 |