Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-15 23:59:16 +0400
committerLukas Reschke <lukas@owncloud.com>2014-10-16 00:01:56 +0400
commite4227658d9d80725620ab33b68de5c26c8ed67ad (patch)
tree65461cf9618eb287c79d905671a47dc415f21cae /settings/application.php
parentf48c973876ebe6eab0d95fa2c3daa12355034e3e (diff)
Migrate new app settings to AppFramework
Let's migrate those two new files.
Diffstat (limited to 'settings/application.php')
-rw-r--r--settings/application.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/settings/application.php b/settings/application.php
index b17ca01c2f3..99d78aff2cc 100644
--- a/settings/application.php
+++ b/settings/application.php
@@ -11,6 +11,7 @@
namespace OC\Settings;
use OC\AppFramework\Utility\SimpleContainer;
+use OC\Settings\Controller\AppSettingsController;
use OC\Settings\Controller\MailSettingsController;
use \OCP\AppFramework\App;
use \OCP\Util;
@@ -44,7 +45,14 @@ class Application extends App {
$c->query('DefaultMailAddress')
);
});
-
+ $container->registerService('AppSettingsController', function(SimpleContainer $c) {
+ return new AppSettingsController(
+ $c->query('AppName'),
+ $c->query('Request'),
+ $c->query('L10N'),
+ $c->query('Config')
+ );
+ });
/**
* Core class wrappers
*/