From 219664e4b828a8b6cb32c8a96bdcafe8b0a681cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Svi=CC=81tok?= Date: Mon, 13 Jan 2020 16:16:35 +0100 Subject: [PATCH] Move PreNotificationEvent emission to NotificationEvent itself remp/crm#1027 --- src/events/PaymentStatusChangeHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/events/PaymentStatusChangeHandler.php b/src/events/PaymentStatusChangeHandler.php index bbb1ddb..504928f 100644 --- a/src/events/PaymentStatusChangeHandler.php +++ b/src/events/PaymentStatusChangeHandler.php @@ -167,6 +167,7 @@ private function attachAttachments(ActiveRow $payment, ActiveRow $order, &$templ private function sendMails(ActiveRow $payment, string $templateCode, array $params, $sendHelpdeskEmail, array $attachments) { $this->emitter->emit(new NotificationEvent( + $this->emitter, $payment->user, $templateCode, $params, @@ -179,6 +180,7 @@ private function sendMails(ActiveRow $payment, string $templateCode, array $para 'email' => $this->applicationConfig->get('contact_email'), ]); $this->emitter->emit(new NotificationEvent( + $this->emitter, $userRow, 'notification-new-coupon', $params,