Merge pull request #20874 from owncloud/allow-di-mimetypedetector

Allow DI for OCP\Files\IMimeTypeDetector
This commit is contained in:
Thomas Müller 2015-12-02 10:12:35 +01:00
commit f840d8dee7
1 changed files with 4 additions and 0 deletions

View File

@ -130,6 +130,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getQueryLogger(); return $this->getServer()->getQueryLogger();
}); });
$this->registerService('OCP\\Files\\IMimeTypeDetector', function($c) {
return $this->getServer()->getMimeTypeDetector();
});
$this->registerService('OCP\\Files\\Config\\IMountProviderCollection', function($c) { $this->registerService('OCP\\Files\\Config\\IMountProviderCollection', function($c) {
return $this->getServer()->getMountProviderCollection(); return $this->getServer()->getMountProviderCollection();
}); });