Adjust notifier to Nextcloud 17
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
committed by
Julius Härtl
parent
799497e62f
commit
f064fe55e2
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user