From 8c3dd7b479f601e879e57e9d1f6db583a27e1233 Mon Sep 17 00:00:00 2001 From: rxu Date: Thu, 28 Nov 2024 22:50:25 +0700 Subject: [PATCH] Inherit from the base class instead of messenger_base --- notification/method/webpush.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/notification/method/webpush.php b/notification/method/webpush.php index e78fa64..dd3c9ce 100644 --- a/notification/method/webpush.php +++ b/notification/method/webpush.php @@ -15,7 +15,6 @@ use phpbb\controller\helper; use phpbb\db\driver\driver_interface; use phpbb\log\log_interface; -use phpbb\notification\method\messenger_base; use phpbb\notification\type\type_interface; use phpbb\path_helper; use phpbb\user; @@ -27,7 +26,7 @@ * Web Push notification method class * This class handles sending push messages for notifications */ -class webpush extends messenger_base implements extended_method_interface +class webpush extends \phpbb\notification\method\base implements extended_method_interface { /** @var config */ protected $config; @@ -78,8 +77,11 @@ public function __construct(config $config, driver_interface $db, log_interface $this->config = $config; $this->db = $db; $this->log = $log; + $this->user_loader = $user_loader; $this->user = $user; $this->path_helper = $path_helper; + $this->phpbb_root_path = $phpbb_root_path; + $this->php_ext = $php_ext; $this->notification_webpush_table = $notification_webpush_table; $this->push_subscriptions_table = $push_subscriptions_table; }