1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Use instead of

This commit is contained in:
Tobia De Koninck 2014-05-05 17:32:07 +02:00
parent 4aaa2d6dfb
commit 0a035175bb

View File

@ -80,7 +80,7 @@ class Dispatcher extends MainApp {
}); });
$this->container->registerService('GroupController', function(IAppContainer $container) use($appName, $app) { $this->container->registerService('GroupController', function(IAppContainer $container) use($appName, $app) {
$request = $container->query('Request'); $request = $container->query('Request');
$tags = $this->server->getTagManager()->load('contact'); $tags = $container->server->getTagManager()->load('contact');
return new GroupController($appName, $request, $app, $tags); return new GroupController($appName, $request, $app, $tags);
}); });
$this->container->registerService('ContactController', function(IAppContainer $container) use($appName, $app) { $this->container->registerService('ContactController', function(IAppContainer $container) use($appName, $app) {
@ -89,7 +89,7 @@ class Dispatcher extends MainApp {
}); });
$this->container->registerService('ContactPhotoController', function(IAppContainer $container) use($appName, $app) { $this->container->registerService('ContactPhotoController', function(IAppContainer $container) use($appName, $app) {
$request = $container->query('Request'); $request = $container->query('Request');
$cache = $this->server->getCache(); $cache = $container->server->getCache();
return new ContactPhotoController($appName, $request, $app, $cache); return new ContactPhotoController($appName, $request, $app, $cache);
}); });
$this->container->registerService('SettingsController', function(IAppContainer $container) use($appName, $app) { $this->container->registerService('SettingsController', function(IAppContainer $container) use($appName, $app) {
@ -98,7 +98,7 @@ class Dispatcher extends MainApp {
}); });
$this->container->registerService('ImportController', function(IAppContainer $container) use($appName, $app) { $this->container->registerService('ImportController', function(IAppContainer $container) use($appName, $app) {
$request = $container->query('Request'); $request = $container->query('Request');
$cache = $this->server->getCache(); $cache = $container->server->getCache();
return new ImportController($appName, $request, $app, $cache); return new ImportController($appName, $request, $app, $cache);
}); });
$this->container->registerService('ExportController', function(IAppContainer $container) use($appName, $app) { $this->container->registerService('ExportController', function(IAppContainer $container) use($appName, $app) {