]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow DI for OCP\Files\IMimeTypeDetector
authorJoas Schilling <nickvergessen@owncloud.com>
Tue, 1 Dec 2015 15:49:20 +0000 (16:49 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Tue, 1 Dec 2015 15:49:20 +0000 (16:49 +0100)
lib/private/appframework/dependencyinjection/dicontainer.php

index 0c46c0bf09faf8b6200fb567f2444eee7505a45a..ce6523cc8a883e77b998b7d57d94bd964845f193 100644 (file)
@@ -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();
                });