$this->registerService('PreviewManager', function($c) {
return new PreviewManager();
});
- $this->registerService('TagManager', function($c){
- return new Tags();
+ $this->registerService('TagManager', function($c) {
- // TODO: get user and user manager from container as well
+ $user = \OC_User::getUser();
+ return new Tags($user);
});
- $this->registerService('RootFolder', function($c){
+ $this->registerService('RootFolder', function($c) {
// TODO: get user and user manager from container as well
$user = \OC_User::getUser();
- $user = \OC_User::getManager()->get($user);
+ /** @var $c SimpleContainer */
+ $userManager = $c->query('UserManager');
+ $user = $userManager->get($user);
$manager = \OC\Files\Filesystem::getMountManager();
$view = new View();
return new Root($manager, $view, $user);