From e1c6b839ff9d2b29fcc7de8f671d65f5bf5f13e0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 16 Jul 2019 11:57:50 +0200 Subject: Adjust notifier to Nextcloud 17 Signed-off-by: Joas Schilling --- appinfo/app.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'appinfo') diff --git a/appinfo/app.php b/appinfo/app.php index b89ae37..4930d50 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -22,17 +22,4 @@ $l = \OC::$server->getL10N('survey_client'); $notificationManager = \OC::$server->getNotificationManager(); -$notificationManager->registerNotifier( - function() { - return new \OCA\Survey_Client\Notifier( - \OC::$server->getL10NFactory(), - \OC::$server->getURLGenerator() - ); - }, - function() use ($l) { - return [ - 'id' => 'survey_client', - 'name' => $l->t('Usage survey'), - ]; - } -); +$notificationManager->registerNotifierService(\OCA\Survey_Client\Notifier::class); -- cgit v1.2.3