add aliases to pascal case constructor paramters to make it possible to auto assemble controllers
This commit is contained in:
parent
8955f38e55
commit
1e58538f0e
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue