Add background job declaration of dav app to info.xml

This commit is contained in:
Thomas Müller 2016-05-02 15:27:15 +02:00
parent 71fa0a75bf
commit cc1d948c2e
No known key found for this signature in database
GPG Key ID: A943788A3BBEC44C
4 changed files with 3 additions and 7 deletions

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

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>

View File

@ -22,5 +22,4 @@
use OCA\Dav\AppInfo\Application;
$app = new Application();
$app->setupCron();
$app->generateBirthdays();

View File

@ -22,5 +22,4 @@
use OCA\Dav\AppInfo\Application;
$app = new Application();
$app->setupCron();
$app->generateBirthdays();