public handle ( Namshi\Notificator\NotificationInterface $notification ) | ||
$notification | Namshi\Notificator\NotificationInterface |
public function handle(NotificationInterface $notification)
{
foreach ($notification->getRecipientAddresses() as $recipientAddress) {
$this->getEmailClient()->sendEmail($notification->getEmailTemplate(), $recipientAddress, $notification->getParameters());
}
return true;
}