Add background job declaration of dav app to info.xml
This commit is contained in:
parent
71fa0a75bf
commit
cc1d948c2e
|
@ -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 */
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -22,5 +22,4 @@
|
|||
use OCA\Dav\AppInfo\Application;
|
||||
|
||||
$app = new Application();
|
||||
$app->setupCron();
|
||||
$app->generateBirthdays();
|
||||
|
|
|
@ -22,5 +22,4 @@
|
|||
use OCA\Dav\AppInfo\Application;
|
||||
|
||||
$app = new Application();
|
||||
$app->setupCron();
|
||||
$app->generateBirthdays();
|
||||
|
|
Loading…
Reference in New Issue