1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Merge pull request #481 from owncloud/fix_php53_errors

Use  instead of
This commit is contained in:
Thomas Tanghus 2014-05-08 14:37:08 +02:00
commit 5a35e74270

View File

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