aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/appinfo
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-04-30 14:29:30 +0200
committerJoas Schilling <coding@schilljs.com>2019-07-15 15:15:00 +0200
commit6d71e471e166c30c0b9abe05d36240b9f1556d8e (patch)
tree561fe5a415ddfc239f9b6e2549df55bfa6a7e51b /apps/user_ldap/appinfo
parent64f67818bcc6cc61cc49b1a7c032f3db85b73c91 (diff)
downloadnextcloud-server-6d71e471e166c30c0b9abe05d36240b9f1556d8e.tar.gz
nextcloud-server-6d71e471e166c30c0b9abe05d36240b9f1556d8e.zip
Update shipped implementations of the INotifier
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_ldap/appinfo')
-rw-r--r--apps/user_ldap/appinfo/app.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/user_ldap/appinfo/app.php b/apps/user_ldap/appinfo/app.php
index 5afd928301a..34b850e655d 100644
--- a/apps/user_ldap/appinfo/app.php
+++ b/apps/user_ldap/appinfo/app.php
@@ -42,17 +42,7 @@ if(count($configPrefixes) > 0) {
$ldapWrapper = new OCA\User_LDAP\LDAP();
$ocConfig = \OC::$server->getConfig();
$notificationManager = \OC::$server->getNotificationManager();
- $notificationManager->registerNotifier(function() {
- return new \OCA\User_LDAP\Notification\Notifier(
- \OC::$server->getL10NFactory()
- );
- }, function() {
- $l = \OC::$server->getL10N('user_ldap');
- return [
- 'id' => 'user_ldap',
- 'name' => $l->t('LDAP user and group backend'),
- ];
- });
+ $notificationManager->registerNotifier(\OCA\User_LDAP\Notification\Notifier::class);
$userSession = \OC::$server->getUserSession();
$userPluginManager = \OC::$server->query('LDAPUserPluginManager');