summaryrefslogtreecommitdiffstats
path: root/core/application.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-12 16:03:51 +0100
committerLukas Reschke <lukas@owncloud.com>2015-03-16 12:47:05 +0100
commit283476a2f7c200912352eb4db097f540e3993e75 (patch)
tree7f98a98e15f8ec4d4f2f39e5863186cc4c1cd47b /core/application.php
parent13486a5ada62e4355473ca01e07371c162951e84 (diff)
downloadnextcloud-server-283476a2f7c200912352eb4db097f540e3993e75.tar.gz
nextcloud-server-283476a2f7c200912352eb4db097f540e3993e75.zip
Use new IMailer and add unit-tests for lostcontroller
Diffstat (limited to 'core/application.php')
-rw-r--r--core/application.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/application.php b/core/application.php
index 568fc34db7d..34f817aa391 100644
--- a/core/application.php
+++ b/core/application.php
@@ -46,7 +46,8 @@ class Application extends App {
$c->query('Config'),
$c->query('SecureRandom'),
$c->query('DefaultEmailAddress'),
- $c->query('IsEncryptionEnabled')
+ $c->query('IsEncryptionEnabled'),
+ $c->query('Mailer')
);
});
$container->registerService('UserController', function(SimpleContainer $c) {
@@ -104,6 +105,9 @@ class Application extends App {
$container->registerService('Defaults', function() {
return new \OC_Defaults;
});
+ $container->registerService('Mailer', function(SimpleContainer $c) {
+ return $c->query('ServerContainer')->getMailer();
+ });
$container->registerService('DefaultEmailAddress', function() {
return Util::getDefaultEmailAddress('lostpassword-noreply');
});