Allow automatic dependency injection for OCP\Mail\Mailer

This commit is contained in:
Joas Schilling 2016-04-25 16:02:57 +02:00
parent a4b1d9feee
commit 6d668807fb
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getMimeTypeDetector();
});
$this->registerService('OCP\\Mail\\IMailer', function() {
return $this->getServer()->getMailer();
});
$this->registerService('OCP\\INavigationManager', function($c) {
return $this->getServer()->getNavigationManager();
});