Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.