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:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2019-12-03 17:10:42 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2019-12-06 15:02:47 +0300
commit762c96df4e902b496371b852cdae554b0ab317e6 (patch)
treee104b74c445852585b7357145c8ba516e7225192 /appinfo/application.php
parenta9d5d3dba1837ecc7501f331704b5fdeaef69d52 (diff)
directToken
Diffstat (limited to 'appinfo/application.php')
-rw-r--r--appinfo/application.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index 8c40dde..fccb5c4 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -105,6 +105,10 @@ class Application extends App {
return $c->query("ServerContainer")->getUserSession();
});
+ $container->registerService("UserManager", function($c) {
+ return $c->query("ServerContainer")->getUserManager();
+ });
+
$container->registerService("Logger", function($c) {
return $c->query("ServerContainer")->getLogger();
});
@@ -119,7 +123,8 @@ class Application extends App {
$c->query("URLGenerator"),
$c->query("L10N"),
$c->query("Logger"),
- $this->appConfig
+ $this->appConfig,
+ $this->crypt
);
});
@@ -152,6 +157,7 @@ class Application extends App {
$c->query("Request"),
$c->query("RootStorage"),
$c->query("UserSession"),
+ $c->query("UserManager"),
$c->query("URLGenerator"),
$c->query("L10N"),
$c->query("Logger"),
@@ -169,7 +175,7 @@ class Application extends App {
$c->query("Request"),
$c->query("RootStorage"),
$c->query("UserSession"),
- $c->query("ServerContainer")->getUserManager(),
+ $c->query("UserManager"),
$c->query("L10N"),
$c->query("Logger"),
$this->appConfig,