summaryrefslogtreecommitdiffstats
path: root/settings/application.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/application.php')
-rw-r--r--settings/application.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/settings/application.php b/settings/application.php
index 0a80bd8b1e7..74d021c5bf3 100644
--- a/settings/application.php
+++ b/settings/application.php
@@ -83,7 +83,12 @@ class Application extends App {
$c->query('UserSession'),
$c->query('Config'),
$c->query('IsAdmin'),
- $c->query('L10N')
+ $c->query('L10N'),
+ $c->query('Logger'),
+ $c->query('Defaults'),
+ $c->query('Mail'),
+ $c->query('DefaultMailAddress'),
+ $c->query('URLGenerator')
);
});
@@ -134,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();
+ });
}
}