Adjust notifier to Nextcloud 17

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling
2019-07-16 12:02:40 +02:00
committed by Julius Härtl
parent 799497e62f
commit f064fe55e2
2 changed files with 22 additions and 7 deletions

View File

@@ -141,12 +141,7 @@ class Application extends App {
public function registerNotifications() {
$notificationManager = \OC::$server->getNotificationManager();
$self = &$this;
$notificationManager->registerNotifier(function() use (&$self) {
return $self->getContainer()->query(Notifier::class);
}, function() {
return ['id' => 'deck', 'name' => 'Deck'];
});
$notificationManager->registerNotifierService(Notifier::class);
}
/**