summaryrefslogtreecommitdiffstats
path: root/core/application.php
diff options
context:
space:
mode:
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 12ec6b63fd4..eab2c686dc1 100644
--- a/core/application.php
+++ b/core/application.php
@@ -85,7 +85,8 @@ class Application extends App {
$c->query('L10N'),
$c->query('UserManager'),
$c->query('UserSession'),
- $c->query('UserFolder')
+ $c->query('UserFolder'),
+ $c->query('Logger')
);
});
@@ -128,6 +129,9 @@ class Application extends App {
$container->registerService('Mailer', function(SimpleContainer $c) {
return $c->query('ServerContainer')->getMailer();
});
+ $container->registerService('Logger', function(SimpleContainer $c) {
+ return $c->query('ServerContainer')->getLogger();
+ });
$container->registerService('TimeFactory', function(SimpleContainer $c) {
return new TimeFactory();
});