summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-30 22:43:30 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-30 22:43:30 +0100
commit54f0dec3197c4f0d30435cd5c5bbf77b2044dbbf (patch)
treed4d42635c9ccf7607a2453e3413b52c4a56aec41 /lib/private/appframework
parent060673a8b32ecfb8da1a4d0a32da090244785ae5 (diff)
parent3c5a6b829e6966985b4c8a18e5d17d2a740d91c1 (diff)
downloadnextcloud-server-54f0dec3197c4f0d30435cd5c5bbf77b2044dbbf.tar.gz
nextcloud-server-54f0dec3197c4f0d30435cd5c5bbf77b2044dbbf.zip
Merge pull request #20845 from owncloud/allow-di-in-apps
Allow DI the system tag stuff without Application class
Diffstat (limited to 'lib/private/appframework')
-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();
});