|
@@ 44-50 (lines=7) @@
|
| 41 |
|
|
| 42 |
|
return new Controller\ContactController($c->getAppName(), $request, $contacts); |
| 43 |
|
}); |
| 44 |
|
$container->registerService('SettingsController', function(IAppContainer $c) { |
| 45 |
|
$request = $c->query('Request'); |
| 46 |
|
$config = $c->getServer()->getConfig(); |
| 47 |
|
$userSession = $c->getServer()->getUserSession(); |
| 48 |
|
|
| 49 |
|
return new Controller\SettingsController($c->getAppName(), $request, $userSession, $config); |
| 50 |
|
}); |
| 51 |
|
$container->registerService('ViewController', function(IAppContainer $c) { |
| 52 |
|
$request = $c->query('Request'); |
| 53 |
|
$userSession = $c->getServer()->getUserSession(); |
|
@@ 51-57 (lines=7) @@
|
| 48 |
|
|
| 49 |
|
return new Controller\SettingsController($c->getAppName(), $request, $userSession, $config); |
| 50 |
|
}); |
| 51 |
|
$container->registerService('ViewController', function(IAppContainer $c) { |
| 52 |
|
$request = $c->query('Request'); |
| 53 |
|
$userSession = $c->getServer()->getUserSession(); |
| 54 |
|
$config = $c->getServer()->getConfig(); |
| 55 |
|
|
| 56 |
|
return new Controller\ViewController($c->getAppName(), $request, $userSession, $config); |
| 57 |
|
}); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
/** |