Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-04-30 13:08:22 +0300
committerJoas Schilling <coding@schilljs.com>2019-07-15 16:14:58 +0300
commit64f67818bcc6cc61cc49b1a7c032f3db85b73c91 (patch)
treef17e3c44ce81a94e4cf9d0f941a0002011b4f1a3 /core/Application.php
parent865c12aa0e624d21d15b351ee5fcbedffa55f11c (diff)
Fix new core notifier
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php20
1 files changed, 2 insertions, 18 deletions
diff --git a/core/Application.php b/core/Application.php
index 9655a8e1a47..3a212f85472 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -65,24 +65,8 @@ class Application extends App {
$eventDispatcher = $server->query(IEventDispatcher::class);
$notificationManager = $server->getNotificationManager();
- $notificationManager->registerNotifier(function () use ($server) {
- return new RemoveLinkSharesNotifier(
- $server->getL10NFactory()
- );
- }, function () {
- return [
- 'id' => 'core',
- 'name' => 'core',
- ];
- });
- $notificationManager->registerNotifier(function () use ($server) {
- return $server->query(AuthenticationNotifier::class);
- }, function () {
- return [
- 'id' => 'auth',
- 'name' => 'authentication notifier',
- ];
- });
+ $notificationManager->registerNotifier(RemoveLinkSharesNotifier::class);
+ $notificationManager->registerNotifier(AuthenticationNotifier::class);
$eventDispatcher->addListener(IDBConnection::CHECK_MISSING_INDEXES_EVENT,
function (GenericEvent $event) use ($container) {