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>2022-06-03 16:51:17 +0300
committerAntipkin-A <Artem.Antipkin@onlyoffice.com>2022-08-30 14:46:42 +0300
commitaab33b48eab3c7ebc4501fbe872c60fcc35123ec (patch)
tree81e26768a6ac9c26434052380170cd6cb3a265d3 /appinfo/application.php
parent8cf64d04dbd7fa67a26d24df3c9a3ce82ddd1017 (diff)
get settings for viewer from initial state
Diffstat (limited to 'appinfo/application.php')
-rw-r--r--appinfo/application.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index 378972d..bbf013a 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -59,6 +59,7 @@ use OCA\Onlyoffice\Notifier;
use OCA\Onlyoffice\Preview;
use OCA\Onlyoffice\TemplateManager;
use OCA\Onlyoffice\TemplateProvider;
+use OCA\Onlyoffice\SettingsData;
use Psr\Container\ContainerInterface;
@@ -136,6 +137,10 @@ class Application extends App implements IBootstrap {
);
});
+ $context->registerService("SettingsData", function (ContainerInterface $c) {
+ return new SettingsData($this->appConfig);
+ });
+
// Controllers
$context->registerService("SettingsController", function (ContainerInterface $c) {
return new SettingsController(