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 11:17:28 +0300
commit5805a9d505cb4bcd7cc2fd037adf10c1db680a0b (patch)
treef3cc0940989675ff8826117325e170587f592cd0 /core/Application.php
parent4e5327f77a15ee7d8b56ef9dac92a4af40df989f (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 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 */