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

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntipkin-A <Artem.Antipkin@onlyoffice.com>2021-04-06 15:02:56 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2021-06-11 15:09:01 +0300
commit55070698bb095439e1baf8230b2ead46006bdb91 (patch)
treeacf0c0a060de4474355e545a6652eae72df9db4d /appinfo/application.php
parentd32f43f94eba5a2d73932a6a46f321a61110b8ce (diff)
send notify about mention
Diffstat (limited to 'appinfo/application.php')
-rw-r--r--appinfo/application.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index c97d8b1..bbbeec8 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -33,6 +33,7 @@ use OCP\Files\Template\ITemplateManager;
use OCP\Files\Template\TemplateFileCreator;
use OCP\IL10N;
use OCP\IPreview;
+use OCP\Notification\IManager;
use OCP\Util;
use OCA\Viewer\Event\LoadViewer;
@@ -45,6 +46,7 @@ use OCA\Onlyoffice\Controller\TemplateController;
use OCA\Onlyoffice\Crypt;
use OCA\Onlyoffice\DirectEditor;
use OCA\Onlyoffice\Hooks;
+use OCA\Onlyoffice\Notifier;
use OCA\Onlyoffice\Preview;
use OCA\Onlyoffice\TemplateManager;
use OCA\Onlyoffice\TemplateProvider;
@@ -264,6 +266,11 @@ class Application extends App implements IBootstrap {
$event->register($editor);
}
});
+
+ });
+
+ $context->injectFn(function (IManager $notificationsManager) {
+ $notificationsManager->registerNotifierService(Notifier::class);
});
$context->injectFn(function(ITemplateManager $templateManager, IL10N $trans, $appName) {