summaryrefslogtreecommitdiffstats
path: root/settings/Application.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/Application.php')
-rw-r--r--settings/Application.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/settings/Application.php b/settings/Application.php
index 6db5e2aabf6..eceb2b6937c 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,14 @@ 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('SettingsManager')
+ );
+ });
/**
* Middleware
@@ -269,5 +278,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();
+ });
}
}