summaryrefslogtreecommitdiffstats
path: root/settings/Application.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/Application.php')
-rw-r--r--settings/Application.php23
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();
+ });
}
}