diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-04-11 13:08:00 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-04-15 18:36:23 +0300 |
commit | 331e4efacb226f95551962f3a53030feced0b190 (patch) | |
tree | 53a978b2c309eb97f8f120c6aa43cc9e278bf31b /core/Application.php | |
parent | 63a385d2b84467552cbc197b2548d7d03f0ba6e6 (diff) |
Move login form into controller
First step on getting the authorisation stuff cleaned up. This is only for the login form, all other stuff is still where it is.
Diffstat (limited to 'core/Application.php')
-rw-r--r-- | core/Application.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php index 30376ee4f2e..805208d4696 100644 --- a/core/Application.php +++ b/core/Application.php @@ -28,6 +28,7 @@ namespace OC\Core; use OC\AppFramework\Utility\SimpleContainer; use OC\AppFramework\Utility\TimeFactory; +use OC\Core\Controller\LoginController; use \OCP\AppFramework\App; use OC\Core\Controller\LostController; use OC\Core\Controller\UserController; @@ -89,6 +90,16 @@ class Application extends App { $c->query('Logger') ); }); + $container->registerService('LoginController', function(SimpleContainer $c) { + return new LoginController( + $c->query('AppName'), + $c->query('Request'), + $c->query('UserManager'), + $c->query('Config'), + $c->query('Session'), + $c->query('UserSession') + ); + }); /** * Core class wrappers @@ -114,6 +125,9 @@ class Application extends App { $container->registerService('AvatarManager', function(SimpleContainer $c) { return $c->query('ServerContainer')->getAvatarManager(); }); + $container->registerService('Session', function(SimpleContainer $c) { + return $c->query('ServerContainer')->getSession(); + }); $container->registerService('UserSession', function(SimpleContainer $c) { return $c->query('ServerContainer')->getUserSession(); }); |