aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index dbec71457ef..57cc93f4477 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -338,17 +338,25 @@ class Server extends ServerContainer implements IServerContainer {
$c->getUserSession(),
$c->getGroupManager());
});
- $this->registerService('AllConfig', function (Server $c) {
+
+ $this->registerService(\OC\AllConfig::class, function (Server $c) {
return new \OC\AllConfig(
$c->getSystemConfig()
);
});
+ $this->registerAlias('AllConfig', \OC\AllConfig::class);
+ $this->registerAlias(\OCP\IConfig::class, \OC\AllConfig::class);
+
$this->registerService('SystemConfig', function ($c) use ($config) {
return new \OC\SystemConfig($config);
});
- $this->registerService('AppConfig', function (Server $c) {
+
+ $this->registerService(\OC\AppConfig::class, function (Server $c) {
return new \OC\AppConfig($c->getDatabaseConnection());
});
+ $this->registerAlias('AppConfig', \OC\AppConfig::class);
+ $this->registerAlias(\OCP\IAppConfig::class, \OC\AppConfig::class);
+
$this->registerService('L10NFactory', function (Server $c) {
return new \OC\L10N\Factory(
$c->getConfig(),