summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework/dependencyinjection/dicontainer.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-12-01 16:49:20 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-12-01 16:49:20 +0100
commit44852ce324f2225c48e1f11e09f2572b38775883 (patch)
tree0fe135be014b3bcc228a5d32632562b6fa162069 /lib/private/appframework/dependencyinjection/dicontainer.php
parent490e01e3836b4a7d21ec660350d0401136985a49 (diff)
downloadnextcloud-server-44852ce324f2225c48e1f11e09f2572b38775883.tar.gz
nextcloud-server-44852ce324f2225c48e1f11e09f2572b38775883.zip
Allow DI for OCP\Files\IMimeTypeDetector
Diffstat (limited to 'lib/private/appframework/dependencyinjection/dicontainer.php')
-rw-r--r--lib/private/appframework/dependencyinjection/dicontainer.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php
index 0c46c0bf09f..ce6523cc8a8 100644
--- a/lib/private/appframework/dependencyinjection/dicontainer.php
+++ b/lib/private/appframework/dependencyinjection/dicontainer.php
@@ -130,6 +130,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getQueryLogger();
});
+ $this->registerService('OCP\\Files\\IMimeTypeDetector', function($c) {
+ return $this->getServer()->getMimeTypeDetector();
+ });
+
$this->registerService('OCP\\Files\\Config\\IMountProviderCollection', function($c) {
return $this->getServer()->getMountProviderCollection();
});