summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-07 13:20:43 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-07 13:20:43 +0100
commitcd35ad6aaab5c6b8536eeed5e3d699f2571d3d7a (patch)
tree610a73f5e7c9ea4083b6682961006740aee66cd6 /lib/private/appframework
parent336fe868b2ee3a4105b93b71a1e739c9e412237b (diff)
downloadnextcloud-server-cd35ad6aaab5c6b8536eeed5e3d699f2571d3d7a.tar.gz
nextcloud-server-cd35ad6aaab5c6b8536eeed5e3d699f2571d3d7a.zip
Add 'OCP\Files\IMimeTypeDetector' to DI container
* Added test to server container as well
Diffstat (limited to 'lib/private/appframework')
-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 88ffc1c6f98..69476d84c9b 100644
--- a/lib/private/appframework/dependencyinjection/dicontainer.php
+++ b/lib/private/appframework/dependencyinjection/dicontainer.php
@@ -165,6 +165,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
$this->registerAlias('OCP\\AppFramework\\Utility\\IControllerMethodReflector', 'OC\AppFramework\Utility\ControllerMethodReflector');
$this->registerAlias('ControllerMethodReflector', 'OCP\\AppFramework\\Utility\\IControllerMethodReflector');
+ $this->registerService('OCP\\Files\\IMimeTypeDetector', function($c) {
+ return $this->getServer()->getMimeTypeDetector();
+ });
+
$this->registerService('OCP\\INavigationManager', function($c) {
return $this->getServer()->getNavigationManager();
});