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:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-04-15 22:19:32 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-04-17 16:33:57 +0300
commit7cbba3e717a0bc51bb9e1f59822d6a6b9138833f (patch)
treea6e5846d293141b9300e87dce13e89c77680738b /core/Application.php
parent22d54078fcab0619b6243ec371ba3c8ba6c7dd62 (diff)
Repair step for link shares
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
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 a65f1f3fa60..f5e0bbbeea7 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 */