From 23da7b3373ddca12cf6660c1de7ac4f196898f5c Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 27 Mar 2020 14:48:40 +0100 Subject: [PATCH] Remove Notifying event for now As discussed with @luceos, let's add this once the use case comes up. It might be a left-over from a previous state of this PR anyway. --- src/Notification/Event/Notifying.php | 39 ------------------- src/Notification/Job/SendNotificationsJob.php | 3 -- 2 files changed, 42 deletions(-) delete mode 100644 src/Notification/Event/Notifying.php diff --git a/src/Notification/Event/Notifying.php b/src/Notification/Event/Notifying.php deleted file mode 100644 index 5fb3ad5b2..000000000 --- a/src/Notification/Event/Notifying.php +++ /dev/null @@ -1,39 +0,0 @@ -blueprint = $blueprint; - $this->users = &$users; - } -} diff --git a/src/Notification/Job/SendNotificationsJob.php b/src/Notification/Job/SendNotificationsJob.php index 31207bac7..f3e8d0277 100644 --- a/src/Notification/Job/SendNotificationsJob.php +++ b/src/Notification/Job/SendNotificationsJob.php @@ -11,7 +11,6 @@ namespace Flarum\Notification\Job; use Carbon\Carbon; use Flarum\Notification\Blueprint\BlueprintInterface; -use Flarum\Notification\Event\Notifying; use Flarum\Notification\Event\Sending; use Flarum\Notification\Notification; use Flarum\Queue\AbstractJob; @@ -51,7 +50,5 @@ class SendNotificationsJob extends AbstractJob ]; }, $this->recipients) ); - - event(new Notifying($this->blueprint, $recipients)); } }