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-06-03 20:33:12 +0300
commita5a7ad758a99c8103b1ef463ea0be1f7c536a808 (patch)
tree64ebc3ee3583f61ce9e93e24c7c79c4fb89ae3c6 /appinfo
parent98c2245f7ba4ad98ea8a2c81cd52e4c3345e5f56 (diff)
get settings for viewer from initial state (Fix #633)
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/application.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index c5c1ec8..a90be12 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -58,6 +58,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;
@@ -127,6 +128,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(