Skip to content

Commit d1b3a01

Browse files
message to reportHandler
1 parent 93cd1df commit d1b3a01

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/ReportHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ReportHandler implements ReportHandlerInterface
1313
* @param \NotificationChannels\WebPush\PushSubscription $subscription
1414
* @return void
1515
*/
16-
public function handleReport($report, $subscription)
16+
public function handleReport($report, $subscription, $message)
1717
{
1818
if ($report->isSuccess()) {
1919
return;

src/ReportHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ interface ReportHandlerInterface
1111
* @param \NotificationChannels\WebPush\PushSubscription $subscription
1212
* @return void
1313
*/
14-
public function handleReport($report, $subscription);
14+
public function handleReport($report, $subscription, $message);
1515
}

src/WebPushChannel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function send($notifiable, Notification $notification)
6262

6363
$reports = $this->webPush->flush();
6464

65-
$this->handleReports($reports, $subscriptions);
65+
$this->handleReports($reports, $subscriptions, $message);
6666
}
6767

6868
/**
@@ -72,12 +72,12 @@ public function send($notifiable, Notification $notification)
7272
* @param \Illuminate\Database\Eloquent\Collection $subscriptions
7373
* @return void
7474
*/
75-
protected function handleReports($reports, $subscriptions)
75+
protected function handleReports($reports, $subscriptions, $message)
7676
{
7777
/** @var \Minishlink\WebPush\MessageSentReport $report */
7878
foreach ($reports as $report) {
7979
if ($report && $subscription = $this->findSubscription($subscriptions, $report)) {
80-
$this->reportHandler->handleReport($report, $subscription);
80+
$this->reportHandler->handleReport($report, $subscription, $message);
8181
}
8282
}
8383
}

0 commit comments

Comments
 (0)