diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-15 21:59:16 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-15 22:01:56 +0200 |
commit | e4227658d9d80725620ab33b68de5c26c8ed67ad (patch) | |
tree | 65461cf9618eb287c79d905671a47dc415f21cae /settings/application.php | |
parent | f48c973876ebe6eab0d95fa2c3daa12355034e3e (diff) | |
download | nextcloud-server-e4227658d9d80725620ab33b68de5c26c8ed67ad.tar.gz nextcloud-server-e4227658d9d80725620ab33b68de5c26c8ed67ad.zip |
Migrate new app settings to AppFramework
Let's migrate those two new files.
Diffstat (limited to 'settings/application.php')
-rw-r--r-- | settings/application.php | 10 |
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 */ |