summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-04-25 16:02:57 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-04-25 16:02:57 +0200
commit6d668807fbad660ea741646bc5b6d2d244b3e39b (patch)
tree43a2f7fe02b7b358c22f1eff1f6e41c74f8186b3 /lib
parenta4b1d9feee79218268abcb0c20ed16bec82c993c (diff)
downloadnextcloud-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.php4
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();
});