diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-16 17:54:30 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-16 17:54:30 +0100 |
commit | 04e172c2ce9a43ea8884384b22efd5d07f027664 (patch) | |
tree | 98a8f27821428a04e8e742153c84beecdf9e1217 /settings/application.php | |
parent | 3b61f76ca0eb9ad9487fa2ab64dda97e51f9df57 (diff) | |
download | nextcloud-server-04e172c2ce9a43ea8884384b22efd5d07f027664.tar.gz nextcloud-server-04e172c2ce9a43ea8884384b22efd5d07f027664.zip |
add unit tests for new user create mail
Diffstat (limited to 'settings/application.php')
-rw-r--r-- | settings/application.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/settings/application.php b/settings/application.php index b088c2f937b..74d021c5bf3 100644 --- a/settings/application.php +++ b/settings/application.php @@ -84,11 +84,11 @@ class Application extends App { $c->query('Config'), $c->query('IsAdmin'), $c->query('L10N'), - $c->getServer()->getLogger(), + $c->query('Logger'), $c->query('Defaults'), $c->query('Mail'), $c->query('DefaultMailAddress'), - $c->getServer()->getURLGenerator() + $c->query('URLGenerator') ); }); @@ -139,5 +139,11 @@ class Application extends App { $container->registerService('DefaultMailAddress', function(IContainer $c) { return Util::getDefaultEmailAddress('no-reply'); }); + $container->registerService('Logger', function(IContainer $c) { + return $c->query('ServerContainer')->getLogger(); + }); + $container->registerService('URLGenerator', function(IContainer $c) { + return $c->query('ServerContainer')->getURLGenerator(); + }); } } |