add aliases to pascal case constructor paramters to make it possible to auto assemble controllers

This commit is contained in:
Bernhard Posselt 2015-04-29 22:29:45 +02:00
parent 8955f38e55
commit 1e58538f0e
1 changed files with 11 additions and 0 deletions

View File

@ -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
*/