Skip to content

Instantly share code, notes, and snippets.

@ojhaujjwal
Last active October 16, 2017 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ojhaujjwal/44c662c2c2cfc9a789ca5421a4952965 to your computer and use it in GitHub Desktop.
Save ojhaujjwal/44c662c2c2cfc9a789ca5421a4952965 to your computer and use it in GitHub Desktop.
<?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