diff options
author | Vinzenz <vinzenz.rosenkranz@gmail.com> | 2016-04-15 19:57:41 +0300 |
---|---|---|
committer | Vinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com> | 2016-04-18 19:23:47 +0300 |
commit | 6c6e752a7cb20998e6895e78209fbfd3fe2b0ff1 (patch) | |
tree | 9c30149d7da0cb2791867be3343ad25f792127bf /appinfo | |
parent | 34e8f66e6fe13027b56b3f8480dee42902f33bd7 (diff) |
fixed some oc function errors
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/application.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/appinfo/application.php b/appinfo/application.php index a0c45816..9791b6c4 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -44,6 +44,7 @@ class Application extends App { $c->query('UserManager'), $c->query('AvatarManager'), $c->query('Logger'), + $c->query('L10N'), $c->query('ServerContainer')->getURLGenerator(), $c->query('UserId'), $c->query('AccessMapper'), @@ -69,6 +70,10 @@ class Application extends App { return $c->query('ServerContainer')->getLogger(); }); + $container->registerService('L10N', function($c) { + return $c->query('ServerContainer')->getL10N($c->query('AppName')); + }); + $server = $container->getServer(); $container->registerService('AccessMapper', function($c) use ($server) { /** @var SimpleContainer $c */ |