mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Allow DI for OCP\Files\IMimeTypeDetector
This commit is contained in:
parent
490e01e383
commit
44852ce324
1 changed files with 4 additions and 0 deletions
|
|
@ -130,6 +130,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
|
|||
return $this->getServer()->getQueryLogger();
|
||||
});
|
||||
|
||||
$this->registerService('OCP\\Files\\IMimeTypeDetector', function($c) {
|
||||
return $this->getServer()->getMimeTypeDetector();
|
||||
});
|
||||
|
||||
$this->registerService('OCP\\Files\\Config\\IMountProviderCollection', function($c) {
|
||||
return $this->getServer()->getMountProviderCollection();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue