diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-04-25 16:02:57 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-04-25 16:02:57 +0200 |
commit | 6d668807fbad660ea741646bc5b6d2d244b3e39b (patch) | |
tree | 43a2f7fe02b7b358c22f1eff1f6e41c74f8186b3 /lib | |
parent | a4b1d9feee79218268abcb0c20ed16bec82c993c (diff) | |
download | nextcloud-server-6d668807fbad660ea741646bc5b6d2d244b3e39b.tar.gz nextcloud-server-6d668807fbad660ea741646bc5b6d2d244b3e39b.zip |
Allow automatic dependency injection for OCP\Mail\Mailer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index f74fe4aeb99..2951ee536d2 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -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(); }); |