diff options
-rw-r--r-- | lib/private/appframework/dependencyinjection/dicontainer.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php index 8f69e237541..5072a65c02f 100644 --- a/lib/private/appframework/dependencyinjection/dicontainer.php +++ b/lib/private/appframework/dependencyinjection/dicontainer.php @@ -63,6 +63,17 @@ class DIContainer extends SimpleContainer implements IAppContainer { $this['AppName'] = $appName; $this['urlParams'] = $urlParams; + // aliases + $this->registerService('appName', function($c) { + return $c->query('AppName'); + }); + $this->registerService('webRoot', function($c) { + return $c->query('WebRoot'); + }); + $this->registerService('userId', function($c) { + return $c->query('UserId'); + }); + /** * Core services */ |