Merge pull request #20874 from owncloud/allow-di-mimetypedetector
Allow DI for OCP\Files\IMimeTypeDetector
This commit is contained in:
commit
f840d8dee7
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue