Skip to content

Commit

Permalink
Move PreNotificationEvent emission to NotificationEvent itself
Browse files Browse the repository at this point in the history
remp/crm#1027
  • Loading branch information
miroc committed Jan 13, 2020
1 parent 6198b25 commit 219664e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/events/PaymentStatusChangeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 219664e

Please sign in to comment.