diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-08-08 23:31:26 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-08-09 18:05:09 +0200 |
commit | ceeb44bd04f2606bea4c94107850157719127581 (patch) | |
tree | 7ecb64a3ca929a7b3a721cfed65c65bf0c61831d /settings/Application.php | |
parent | edeb41ccaff186b116852df4caf8df144db682c8 (diff) | |
download | nextcloud-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 'settings/Application.php')
-rw-r--r-- | settings/Application.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/settings/Application.php b/settings/Application.php index 6db5e2aabf6..09ca0807e63 100644 --- a/settings/Application.php +++ b/settings/Application.php @@ -32,6 +32,7 @@ namespace OC\Settings; use OC\Files\View; use OC\Server; +use OC\Settings\Controller\AdminSettingsController; use OC\Settings\Controller\AppSettingsController; use OC\Settings\Controller\AuthSettingsController; use OC\Settings\Controller\CertificateController; @@ -178,6 +179,19 @@ class Application extends App { $c->query('Logger') ); }); + $container->registerService('AdminSettingsController', function(IContainer $c) { + return new AdminSettingsController( + $c->query('AppName'), + $c->query('Request'), + $c->query('INavigationManager'), + $c->query('L10N'), + $c->query('Config'), + $c->query('EncryptionManager'), + $c->query('UserManager'), + $c->query('DatabaseConnection'), + $c->query('SettingsManager') + ); + }); /** * Middleware @@ -269,5 +283,14 @@ class Application extends App { $server = $c->query('ServerContainer'); return $server->getIntegrityCodeChecker(); }); + $container->registerService('EventDispatcher', function (IContainer $c) { + return $c->query('ServerContainer')->getEventDispatcher(); + }); + $container->registerService('EncryptionManager', function (IContainer $c) { + return $c->query('ServerContainer')->getEncryptionManager(); + }); + $container->registerService('SettingsManager', function (IContainer $c) { + return $c->query('ServerContainer')->getSettingsManager(); + }); } } |