diff options
-rw-r--r-- | lib/private/appframework/dependencyinjection/dicontainer.php | 4 | ||||
-rw-r--r-- | tests/lib/server.php | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php index 88ffc1c6f98..69476d84c9b 100644 --- a/lib/private/appframework/dependencyinjection/dicontainer.php +++ b/lib/private/appframework/dependencyinjection/dicontainer.php @@ -165,6 +165,10 @@ class DIContainer extends SimpleContainer implements IAppContainer { $this->registerAlias('OCP\\AppFramework\\Utility\\IControllerMethodReflector', 'OC\AppFramework\Utility\ControllerMethodReflector'); $this->registerAlias('ControllerMethodReflector', 'OCP\\AppFramework\\Utility\\IControllerMethodReflector'); + $this->registerService('OCP\\Files\\IMimeTypeDetector', function($c) { + return $this->getServer()->getMimeTypeDetector(); + }); + $this->registerService('OCP\\INavigationManager', function($c) { return $this->getServer()->getNavigationManager(); }); diff --git a/tests/lib/server.php b/tests/lib/server.php index e2670061e8d..44e1aac5cce 100644 --- a/tests/lib/server.php +++ b/tests/lib/server.php @@ -94,6 +94,8 @@ class Server extends \Test\TestCase { ['HttpClientService', '\OCP\Http\Client\IClientService'], ['IniWrapper', '\bantu\IniGetWrapper\IniGetWrapper'], + ['MimeTypeDetector', '\OCP\Files\IMimeTypeDetector'], + ['MimeTypeDetector', '\OC\Files\Type\Detection'], ['JobList', '\OC\BackgroundJob\JobList'], ['JobList', '\OCP\BackgroundJob\IJobList'], |