summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-08-12 17:54:27 +0200
committerJulius Härtl <jus@bitgrid.net>2019-08-13 16:26:18 +0200
commit2efb9a7d90f0464826cbbc1cc39aa96d485dbf88 (patch)
tree137d1ec7e60d59d7062c469555fd90eb3eada39a /lib/private/Server.php
parentfced73aa3779c9c38e2bb845c7496fc23c6f0391 (diff)
downloadnextcloud-server-2efb9a7d90f0464826cbbc1cc39aa96d485dbf88.tar.gz
nextcloud-server-2efb9a7d90f0464826cbbc1cc39aa96d485dbf88.zip
Make sure SystemConfig class can be injected and syslog_tag is fetched properly
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index c25808a9ccc..f919e0b4efb 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -449,9 +449,10 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerAlias('AllConfig', \OC\AllConfig::class);
$this->registerAlias(\OCP\IConfig::class, \OC\AllConfig::class);
- $this->registerService('SystemConfig', function ($c) use ($config) {
+ $this->registerService(\OC\SystemConfig::class, function ($c) use ($config) {
return new \OC\SystemConfig($config);
});
+ $this->registerAlias('SystemConfig', \OC\SystemConfig::class);
$this->registerService(\OC\AppConfig::class, function (Server $c) {
return new \OC\AppConfig($c->getDatabaseConnection());