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, 17 insertions, 1 deletions
diff --git a/settings/application.php b/settings/application.php
index 397e3b3de91..b4596037964 100644
--- a/settings/application.php
+++ b/settings/application.php
@@ -24,6 +24,7 @@
namespace OC\Settings;
use OC\Settings\Controller\AppSettingsController;
+use OC\Settings\Controller\CheckSetupController;
use OC\Settings\Controller\GroupsController;
use OC\Settings\Controller\LogSettingsController;
use OC\Settings\Controller\MailSettingsController;
@@ -44,7 +45,7 @@ class Application extends App {
/**
* @param array $urlParams
*/
- public function __construct(array $urlParams=array()){
+ public function __construct(array $urlParams=[]){
parent::__construct('settings', $urlParams);
$container = $this->getContainer();
@@ -117,6 +118,15 @@ class Application extends App {
$c->query('L10N')
);
});
+ $container->registerService('CheckSetupController', function(IContainer $c) {
+ return new CheckSetupController(
+ $c->query('AppName'),
+ $c->query('Request'),
+ $c->query('Config'),
+ $c->query('ClientService'),
+ $c->query('Util')
+ );
+ });
/**
* Middleware
@@ -178,5 +188,11 @@ class Application extends App {
$container->registerService('URLGenerator', function(IContainer $c) {
return $c->query('ServerContainer')->getURLGenerator();
});
+ $container->registerService('ClientService', function(IContainer $c) {
+ return $c->query('ServerContainer')->getHTTPClientService();
+ });
+ $container->registerService('Util', function(IContainer $c) {
+ return new \OC_Util();
+ });
}
}