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:
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php
index 5ba07e2cb48..f89b7e48081 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -28,6 +28,7 @@
namespace OC\Core;
+use OC\Core\Notification\RemoveLinkSharesNotifier;
use OC\DB\MissingIndexInformation;
use OC\DB\SchemaWrapper;
use OCP\AppFramework\App;
@@ -54,6 +55,18 @@ class Application extends App {
$server = $container->getServer();
$eventDispatcher = $server->getEventDispatcher();
+ $notificationManager = $server->getNotificationManager();
+ $notificationManager->registerNotifier(function() use ($server) {
+ return new RemoveLinkSharesNotifier(
+ $server->getL10NFactory()
+ );
+ }, function() use ($server) {
+ return [
+ 'id' => 'core',
+ 'name' => 'core',
+ ];
+ });
+
$eventDispatcher->addListener(IDBConnection::CHECK_MISSING_INDEXES_EVENT,
function(GenericEvent $event) use ($container) {
/** @var MissingIndexInformation $subject */