diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-05-02 15:27:15 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-05-03 08:58:12 +0200 |
commit | cc1d948c2e9ca7be49a22358336f7a00f102d19a (patch) | |
tree | dfc661c155514b055bb7ba82ef3ecbb2ebe31796 /apps/dav | |
parent | 71fa0a75bf152b763fb3ee86dc5102b0c29d27b5 (diff) | |
download | nextcloud-server-cc1d948c2e9ca7be49a22358336f7a00f102d19a.tar.gz nextcloud-server-cc1d948c2e9ca7be49a22358336f7a00f102d19a.zip |
Add background job declaration of dav app to info.xml
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/appinfo/application.php | 5 | ||||
-rw-r--r-- | apps/dav/appinfo/info.xml | 3 | ||||
-rw-r--r-- | apps/dav/appinfo/install.php | 1 | ||||
-rw-r--r-- | 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 c3811a40845..328f86c877f 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 bb447c9a426..e2688e2f923 100644 --- a/apps/dav/appinfo/info.xml +++ b/apps/dav/appinfo/info.xml @@ -16,4 +16,7 @@ <dependencies> <owncloud min-version="9.1" max-version="9.1" /> </dependencies> + <background-jobs> + <job>OCA\DAV\CardDAV\Sync\SyncJob</job> + </background-jobs> </info> diff --git a/apps/dav/appinfo/install.php b/apps/dav/appinfo/install.php index fbd41d25f49..dbb23022b38 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 fbd41d25f49..dbb23022b38 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(); |