summaryrefslogtreecommitdiffstats
path: root/lib/server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/server.php')
-rw-r--r--lib/server.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/server.php b/lib/server.php
index 804af6b0eac..b09d380b0e9 100644
--- a/lib/server.php
+++ b/lib/server.php
@@ -49,8 +49,11 @@ class Server extends SimpleContainer implements IServerContainer {
$this->registerService('PreviewManager', function($c) {
return new PreviewManager();
});
- $this->registerService('RootFolder', function($c) {
- // TODO: get user from container as well
+ $this->registerService('TagManager', function($c){
+ return new Tags();
+ });
+ $this->registerService('RootFolder', function($c){
+ // TODO: get user and user manager from container as well
$user = \OC_User::getUser();
/** @var $c SimpleContainer */
$userManager = $c->query('UserManager');
@@ -140,6 +143,15 @@ class Server extends SimpleContainer implements IServerContainer {
}
/**
+ * Returns the tag manager which can get and set tags for different object types
+ *
+ * @return \OCP\ITags
+ */
+ function getTagManager() {
+ return $this->query('TagManager');
+ }
+
+ /**
* Returns the root folder of ownCloud's data directory
*
* @return \OCP\Files\Folder