From 962b40f0e92d58190d43736bc5f10bcf4eeb6060 Mon Sep 17 00:00:00 2001 From: gellu Date: Tue, 24 May 2016 21:04:47 +0200 Subject: [PATCH] Fixed undefined component variable (#1808) --- .../SendComponentUpdateEmailNotificationHandler.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Bus/Handlers/Events/Component/SendComponentUpdateEmailNotificationHandler.php b/app/Bus/Handlers/Events/Component/SendComponentUpdateEmailNotificationHandler.php index 868ec8af..264d2bf5 100644 --- a/app/Bus/Handlers/Events/Component/SendComponentUpdateEmailNotificationHandler.php +++ b/app/Bus/Handlers/Events/Component/SendComponentUpdateEmailNotificationHandler.php @@ -63,7 +63,7 @@ class SendComponentUpdateEmailNotificationHandler $globalSubscribers = $this->subscriber->isVerified()->isGlobal()->get(); foreach ($globalSubscribers as $subscriber) { - $this->notify($event, $subscriber); + $this->notify($component, $subscriber); } $notified = $globalSubscribers->pluck('id')->all(); @@ -78,19 +78,19 @@ class SendComponentUpdateEmailNotificationHandler }); foreach ($componentSubscribers as $subscriber) { - $this->notify($event, $subscriber); + $this->notify($component, $subscriber); } } /** * Send notification to subscriber. * - * @param \CachetHQ\Cachet\Bus\Events\ComponentWasUpdatedEvent $event - * @param \CachetHQ\Cachet\Models\Subscriber $subscriber + * @param \CachetHQ\Cachet\Models\Component $component + * @param \CachetHQ\Cachet\Models\Subscriber $subscriber * * @return \Illuminate\Database\Eloquent\Collection */ - public function notify(ComponentWasUpdatedEvent $event, $subscriber) + public function notify(Component $component, Subscriber $subscriber) { $mail = [ 'subject' => trans('cachet.subscriber.email.component.subject'),