diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-07 16:18:55 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-07 16:18:55 +0100 |
commit | f6f492ba4e72b82e6f144f912536cfd7b664c491 (patch) | |
tree | 0867be96ae258d4d26ee4711031dde9953c421dd /lib/private | |
parent | 5a5803f414c3f40f8527b94545a1a4dbbaa9feef (diff) | |
parent | cd35ad6aaab5c6b8536eeed5e3d699f2571d3d7a (diff) | |
download | nextcloud-server-f6f492ba4e72b82e6f144f912536cfd7b664c491.tar.gz nextcloud-server-f6f492ba4e72b82e6f144f912536cfd7b664c491.zip |
Merge pull request #21502 from owncloud/di_mimetypedetector
Add 'OCP\Files\IMimeTypeDetector' to DI container
Diffstat (limited to 'lib/private')
-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(); }); |