diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-02 10:12:35 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-02 10:12:35 +0100 |
commit | f840d8dee76c5130ebd20a0c14a322507af1c274 (patch) | |
tree | e2c5f4e1b59e7de67745d07ec8bc97072d883cc2 /lib | |
parent | 0bd02127311503ad3d903529bf246f9cfcf78c43 (diff) | |
parent | 44852ce324f2225c48e1f11e09f2572b38775883 (diff) | |
download | nextcloud-server-f840d8dee76c5130ebd20a0c14a322507af1c274.tar.gz nextcloud-server-f840d8dee76c5130ebd20a0c14a322507af1c274.zip |
Merge pull request #20874 from owncloud/allow-di-mimetypedetector
Allow DI for OCP\Files\IMimeTypeDetector
Diffstat (limited to 'lib')
-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 0c46c0bf09f..ce6523cc8a8 100644 --- a/lib/private/appframework/dependencyinjection/dicontainer.php +++ b/lib/private/appframework/dependencyinjection/dicontainer.php @@ -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(); }); |