|
@@ 73-80 (lines=8) @@
|
| 70 |
|
}); |
| 71 |
|
|
| 72 |
|
|
| 73 |
|
$container->registerService('ProxyController', function(IAppContainer $c) { |
| 74 |
|
$request = $c->query('Request'); |
| 75 |
|
$client = $c->getServer()->getHTTPClientService(); |
| 76 |
|
$l10n = $c->getServer()->getL10N($c->query('AppName')); |
| 77 |
|
$logger = $c->getServer()->getLogger(); |
| 78 |
|
|
| 79 |
|
return new Controller\ProxyController($c->getAppName(), $request, $client, $l10n, $logger); |
| 80 |
|
}); |
| 81 |
|
|
| 82 |
|
$container->registerService('SettingsController', function(IAppContainer $c) { |
| 83 |
|
$request = $c->query('Request'); |
|
@@ 96-103 (lines=8) @@
|
| 93 |
|
return new Controller\TimezoneController($c->getAppName(), $request); |
| 94 |
|
}); |
| 95 |
|
|
| 96 |
|
$container->registerService('ViewController', function(IAppContainer $c) { |
| 97 |
|
$request = $c->query('Request'); |
| 98 |
|
$userSession = $c->getServer()->getUserSession(); |
| 99 |
|
$config = $c->getServer()->getConfig(); |
| 100 |
|
$urlGenerator = $c->getServer()->getURLGenerator(); |
| 101 |
|
|
| 102 |
|
return new Controller\ViewController($c->getAppName(), $request, $userSession, $config, $urlGenerator); |
| 103 |
|
}); |
| 104 |
|
|
| 105 |
|
$cloudFederationManager = $container->getServer()->getCloudFederationProviderManager(); |
| 106 |
|
$cloudFederationManager->addCloudFederationProvider('calendar', |