From 01a6656c370431c09a9dd70b973ef6e2502e052c Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Thu, 14 Jan 2016 14:46:51 +0100 Subject: Fix ctor --- apps/dav/appinfo/register_command.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/dav/appinfo/register_command.php') diff --git a/apps/dav/appinfo/register_command.php b/apps/dav/appinfo/register_command.php index 10f68768751..3152712b7c0 100644 --- a/apps/dav/appinfo/register_command.php +++ b/apps/dav/appinfo/register_command.php @@ -19,6 +19,7 @@ * along with this program. If not, see * */ +use OCA\Dav\AppInfo\Application; use OCA\DAV\Command\CreateAddressBook; use OCA\DAV\Command\CreateCalendar; use OCA\DAV\Command\SyncSystemAddressBook; @@ -29,7 +30,9 @@ $userManager = OC::$server->getUserManager(); $config = \OC::$server->getConfig(); $logger = \OC::$server->getLogger(); +$app = new Application(); + /** @var Symfony\Component\Console\Application $application */ $application->add(new CreateAddressBook($userManager, $dbConnection, $config, $logger)); $application->add(new CreateCalendar($userManager, $dbConnection)); -$application->add(new SyncSystemAddressBook($userManager, $dbConnection, $config)); +$application->add(new SyncSystemAddressBook($app->getSyncService())); -- cgit v1.2.3