Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from joshuabrooks/add_return_statement
Browse files Browse the repository at this point in the history
add return statement to the send function
  • Loading branch information
jvasseur committed Jul 19, 2018
2 parents 5b9b176 + f19b2c4 commit 7aba67f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MailSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public function __construct(\Swift_Mailer $mailer, \Twig_Environment $twig)
* @param string $name
* @param array $context
* @param callable|null $callback a callback to modify the mail before it is sent.
*
* @return \Swift_Message
*/
public function send($name, array $context = [], callable $callback = null)
{
Expand Down Expand Up @@ -62,6 +64,8 @@ public function send($name, array $context = [], callable $callback = null)
}

$this->mailer->send($mail);

return $mail;
}

/**
Expand Down

0 comments on commit 7aba67f

Please sign in to comment.