Browse Source

Add background job declaration of dav app to info.xml

tags/v9.1.0beta1
Thomas Müller 8 years ago
parent
commit
cc1d948c2e
No account linked to committer's email address

+ 0
- 5
apps/dav/appinfo/application.php View File

@@ -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 */

+ 3
- 0
apps/dav/appinfo/info.xml View File

@@ -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>

+ 0
- 1
apps/dav/appinfo/install.php View File

@@ -22,5 +22,4 @@
use OCA\Dav\AppInfo\Application;

$app = new Application();
$app->setupCron();
$app->generateBirthdays();

+ 0
- 1
apps/dav/appinfo/update.php View File

@@ -22,5 +22,4 @@
use OCA\Dav\AppInfo\Application;

$app = new Application();
$app->setupCron();
$app->generateBirthdays();

Loading…
Cancel
Save