mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Allow automatic dependency injection for OCP\Mail\Mailer
This commit is contained in:
parent
a4b1d9feee
commit
6d668807fb
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue