diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-07 13:20:43 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-07 13:20:43 +0100 |
commit | cd35ad6aaab5c6b8536eeed5e3d699f2571d3d7a (patch) | |
tree | 610a73f5e7c9ea4083b6682961006740aee66cd6 /lib/private/appframework | |
parent | 336fe868b2ee3a4105b93b71a1e739c9e412237b (diff) | |
download | nextcloud-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.php | 4 |
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(); }); |