@@ 56-63 (lines=8) @@ | ||
53 | return new Controller\EmailController($c->getAppName(), $request, $userSession, $config, $mailer, $l10n, $defaults); |
|
54 | }); |
|
55 | ||
56 | $container->registerService('ProxyController', function(IAppContainer $c) { |
|
57 | $request = $c->query('Request'); |
|
58 | $client = $c->getServer()->getHTTPClientService(); |
|
59 | $l10n = $c->getServer()->getL10N($c->query('AppName')); |
|
60 | $logger = $c->getServer()->getLogger(); |
|
61 | ||
62 | return new Controller\ProxyController($c->getAppName(), $request, $client, $l10n, $logger); |
|
63 | }); |
|
64 | ||
65 | $container->registerService('SettingsController', function(IAppContainer $c) { |
|
66 | $request = $c->query('Request'); |
|
@@ 79-86 (lines=8) @@ | ||
76 | return new Controller\TimezoneController($c->getAppName(), $request); |
|
77 | }); |
|
78 | ||
79 | $container->registerService('ViewController', function(IAppContainer $c) { |
|
80 | $request = $c->query('Request'); |
|
81 | $userSession = $c->getServer()->getUserSession(); |
|
82 | $config = $c->getServer()->getConfig(); |
|
83 | $urlGenerator = $c->getServer()->getURLGenerator(); |
|
84 | ||
85 | return new Controller\ViewController($c->getAppName(), $request, $userSession, $config, $urlGenerator); |
|
86 | }); |
|
87 | } |
|
88 | ||
89 | /** |