From bf8b5030ff66c529519e88f4690a20218570026b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 12 Feb 2024 12:18:15 +0100 Subject: [PATCH] chore: Migrate to OCP version of QueuedJob MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keeps compatibility with server master Signed-off-by: Côme Chilliet --- lib/Notification/BackgroundJob.php | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/lib/Notification/BackgroundJob.php b/lib/Notification/BackgroundJob.php index 95ebe50e4..dd02078e0 100644 --- a/lib/Notification/BackgroundJob.php +++ b/lib/Notification/BackgroundJob.php @@ -1,4 +1,7 @@ * @@ -21,25 +24,18 @@ namespace OCA\FirstRunWizard\Notification; -use OC\BackgroundJob\QueuedJob; +use OCP\BackgroundJob\QueuedJob; use OCP\Notification\IManager as INotificationManager; class BackgroundJob extends QueuedJob { - - /** @var INotificationManager */ - protected $notificationManager; - - /** - * BackgroundJob constructor. - * - * @param INotificationManager $notificationManager - */ - public function __construct(INotificationManager $notificationManager) { - $this->notificationManager = $notificationManager; + public function __construct( + protected INotificationManager $notificationManager, + ) { } /** * @param array $argument + * @return void */ protected function run($argument) { $notification = $this->notificationManager->createNotification();