summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/Application.php8
-rw-r--r--core/Controller/UserController.php12
2 files changed, 3 insertions, 17 deletions
diff --git a/core/Application.php b/core/Application.php
index 0c69394c979..9a6d0878fee 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -73,14 +73,6 @@ class Application extends App {
$c->query('TimeFactory')
);
});
- $container->registerService('UserController', function(SimpleContainer $c) {
- return new UserController(
- $c->query('AppName'),
- $c->query('Request'),
- $c->query('UserManager'),
- $c->query('Defaults')
- );
- });
$container->registerService('LoginController', function(SimpleContainer $c) {
return new LoginController(
$c->query('AppName'),
diff --git a/core/Controller/UserController.php b/core/Controller/UserController.php
index 0cede94eb6e..fc282e36d9b 100644
--- a/core/Controller/UserController.php
+++ b/core/Controller/UserController.php
@@ -26,26 +26,20 @@ namespace OC\Core\Controller;
use \OCP\AppFramework\Controller;
use \OCP\AppFramework\Http\JSONResponse;
use \OCP\IRequest;
+use \OCP\IUserManager;
class UserController extends Controller {
/**
- * @var \OCP\IUserManager
+ * @var IUserManager
*/
protected $userManager;
- /**
- * @var \OC_Defaults
- */
- protected $defaults;
-
public function __construct($appName,
IRequest $request,
- $userManager,
- $defaults
+ IUserManager $userManager
) {
parent::__construct($appName, $request);
$this->userManager = $userManager;
- $this->defaults = $defaults;
}
/**