summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-11 16:35:46 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-04-11 16:35:46 +0200
commit3600dd4f5295b67eaad3cbd503675e9bd9c679aa (patch)
tree56b33722ac6ae7cdb9b56d053633884c9e49739d /lib/private/Server.php
parentbd6273ee1c803b8a129fb76135ca23377805da9e (diff)
downloadnextcloud-server-3600dd4f5295b67eaad3cbd503675e9bd9c679aa.tar.gz
nextcloud-server-3600dd4f5295b67eaad3cbd503675e9bd9c679aa.zip
Add IEMailTemplate to public OCP API
Also adds `\OCP\Mail\IMailer::createEMailTemplate` as helper so the functionality can easily be used within apps. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 9b2380ac7ac..011263cd2d8 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -727,7 +727,9 @@ class Server extends ServerContainer implements IServerContainer {
return new Mailer(
$c->getConfig(),
$c->getLogger(),
- $c->query(Defaults::class)
+ $c->query(Defaults::class),
+ $c->getURLGenerator(),
+ $c->getL10N('lib')
);
});
$this->registerAlias('Mailer', \OCP\Mail\IMailer::class);