diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-04-15 21:19:32 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-04-16 15:42:21 +0200 |
commit | 24d6a28f809278c7f31223ff656cd6b1c83a57ff (patch) | |
tree | 8f7d97c410a2c0d22be94ac8039f6995a17938c9 /core/Application.php | |
parent | 4c43e89dfd8f79b6eedf23ff163f90fe4ef01a4c (diff) | |
download | nextcloud-server-24d6a28f809278c7f31223ff656cd6b1c83a57ff.tar.gz nextcloud-server-24d6a28f809278c7f31223ff656cd6b1c83a57ff.zip |
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.php | 13 |
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 */ |