summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-11-30 17:08:29 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-11-30 17:08:29 +0100
commit3c5a6b829e6966985b4c8a18e5d17d2a740d91c1 (patch)
treecfa82cf209b540b62dd5d5e6dd7dfc5c4dc7fc2b /lib
parentb9faba8857ffb7ecd51f2be4f6619f2a6201c6a9 (diff)
downloadnextcloud-server-3c5a6b829e6966985b4c8a18e5d17d2a740d91c1.tar.gz
nextcloud-server-3c5a6b829e6966985b4c8a18e5d17d2a740d91c1.zip
Allow DI the system tag stuff without Application class
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/dependencyinjection/dicontainer.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php
index eeab9b96e59..0c46c0bf09f 100644
--- a/lib/private/appframework/dependencyinjection/dicontainer.php
+++ b/lib/private/appframework/dependencyinjection/dicontainer.php
@@ -206,6 +206,14 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getSecureRandom();
});
+ $this->registerService('OCP\\SystemTag\\ISystemTagManager', function() {
+ return $this->getServer()->getSystemTagManager();
+ });
+
+ $this->registerService('OCP\\SystemTag\\ISystemTagObjectMapper', function() {
+ return $this->getServer()->getSystemTagObjectMapper();
+ });
+
$this->registerService('OCP\\IURLGenerator', function($c) {
return $this->getServer()->getURLGenerator();
});