Merge pull request #21502 from owncloud/di_mimetypedetector
Add 'OCP\Files\IMimeTypeDetector' to DI container
This commit is contained in:
commit
f6f492ba4e
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue