summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-08-08 23:31:26 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-08-09 18:05:09 +0200
commitceeb44bd04f2606bea4c94107850157719127581 (patch)
tree7ecb64a3ca929a7b3a721cfed65c65bf0c61831d /lib/private/Server.php
parentedeb41ccaff186b116852df4caf8df144db682c8 (diff)
downloadnextcloud-server-ceeb44bd04f2606bea4c94107850157719127581.tar.gz
nextcloud-server-ceeb44bd04f2606bea4c94107850157719127581.zip
Initial work on Apps page split:
* interfaces for the Admin settings (IAdmin) and section (ISection) * SettingsManager service * example setup with LDAP app
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index d5808d7f17c..53c8ee84924 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -722,6 +722,17 @@ class Server extends ServerContainer implements IServerContainer {
return $manager;
});
+ $this->registerService('SettingsManager', function(Server $c) {
+ $manager = new \OC\Settings\Manager(
+ $c->getLogger(),
+ $c->getDatabaseConnection(),
+ $c->getL10N('core'),
+ $c->getConfig(),
+ $c->getEncryptionManager(),
+ $c->getUserManager()
+ );
+ return $manager;
+ });
}
/**
@@ -1425,4 +1436,11 @@ class Server extends ServerContainer implements IServerContainer {
public function getLDAPProvider() {
return $this->query('LDAPProvider');
}
+
+ /**
+ * @return \OCP\Settings\IManager
+ */
+ public function getSettingsManager() {
+ return $this->query('SettingsManager');
+ }
}