From cc1d948c2e9ca7be49a22358336f7a00f102d19a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 2 May 2016 15:27:15 +0200 Subject: [PATCH] Add background job declaration of dav app to info.xml --- apps/dav/appinfo/application.php | 5 ----- apps/dav/appinfo/info.xml | 3 +++ apps/dav/appinfo/install.php | 1 - apps/dav/appinfo/update.php | 1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/dav/appinfo/application.php b/apps/dav/appinfo/application.php index c3811a4084..328f86c877 100644 --- a/apps/dav/appinfo/application.php +++ b/apps/dav/appinfo/application.php @@ -153,11 +153,6 @@ class Application extends App { return $this->getContainer()->query('SyncService'); } - public function setupCron() { - $jl = $this->getContainer()->getServer()->getJobList(); - $jl->add(new SyncJob()); - } - public function generateBirthdays() { try { /** @var BirthdayService $migration */ diff --git a/apps/dav/appinfo/info.xml b/apps/dav/appinfo/info.xml index bb447c9a42..e2688e2f92 100644 --- a/apps/dav/appinfo/info.xml +++ b/apps/dav/appinfo/info.xml @@ -16,4 +16,7 @@ + + OCA\DAV\CardDAV\Sync\SyncJob + diff --git a/apps/dav/appinfo/install.php b/apps/dav/appinfo/install.php index fbd41d25f4..dbb23022b3 100644 --- a/apps/dav/appinfo/install.php +++ b/apps/dav/appinfo/install.php @@ -22,5 +22,4 @@ use OCA\Dav\AppInfo\Application; $app = new Application(); -$app->setupCron(); $app->generateBirthdays(); diff --git a/apps/dav/appinfo/update.php b/apps/dav/appinfo/update.php index fbd41d25f4..dbb23022b3 100644 --- a/apps/dav/appinfo/update.php +++ b/apps/dav/appinfo/update.php @@ -22,5 +22,4 @@ use OCA\Dav\AppInfo\Application; $app = new Application(); -$app->setupCron(); $app->generateBirthdays();