diff options
Diffstat (limited to 'appinfo/app.php')
-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); |