Last active
October 16, 2017 15:48
-
-
Save ojhaujjwal/44c662c2c2cfc9a789ca5421a4952965 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Handler; | |
use App\Message\SendForgotPasswordEmail; | |
class SendForgotPasswordEmailHandler | |
{ | |
private $mailer; | |
public function __construct(Mailer $mailer) | |
{ | |
$this->mailer = $mailer; | |
} | |
public function __invoke(SendForgotPasswordEmail $message) | |
{ | |
// $mailer->sendMail($message->getUser()->getEmail(), 'subject', 'contents'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment