diff options
author | Joas Schilling <coding@schilljs.com> | 2019-07-16 12:57:50 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-07-16 12:58:09 +0300 |
commit | e1c6b839ff9d2b29fcc7de8f671d65f5bf5f13e0 (patch) | |
tree | 1fb456d480edc31e74d99af034943c3336326c01 /appinfo | |
parent | fe0eeb3d9adfbf53eaf8cac2622ebb0d51518348 (diff) |
Adjust notifier to Nextcloud 17
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 15 |
1 files changed, 1 insertions, 14 deletions
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); |