diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-11-24 14:18:47 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-11-25 15:03:06 +0100 |
commit | 6166e1a157774b7c3c1ee8f304ef96ff2efe3e92 (patch) | |
tree | 4edbc6ae63ec8bd1d0982978524f0137e21ab6e2 /apps/dav/lib/BackgroundJob | |
parent | d4fd61b7c6df367899fc225784d3cea64206a542 (diff) | |
download | nextcloud-server-6166e1a157774b7c3c1ee8f304ef96ff2efe3e92.tar.gz nextcloud-server-6166e1a157774b7c3c1ee8f304ef96ff2efe3e92.zip |
Use proper OCP\BackgroundJobs\Job
And typehunt the IJobList
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib/BackgroundJob')
-rw-r--r-- | apps/dav/lib/BackgroundJob/RefreshWebcalJob.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/dav/lib/BackgroundJob/RefreshWebcalJob.php b/apps/dav/lib/BackgroundJob/RefreshWebcalJob.php index 47dbbcbcaa1..32a48919868 100644 --- a/apps/dav/lib/BackgroundJob/RefreshWebcalJob.php +++ b/apps/dav/lib/BackgroundJob/RefreshWebcalJob.php @@ -30,9 +30,10 @@ declare(strict_types=1); namespace OCA\DAV\BackgroundJob; use DateInterval; -use OC\BackgroundJob\Job; use OCA\DAV\CalDAV\WebcalCaching\RefreshWebcalService; use OCP\AppFramework\Utility\ITimeFactory; +use OCP\BackgroundJob\IJobList; +use OCP\BackgroundJob\Job; use OCP\IConfig; use OCP\ILogger; use Sabre\VObject\DateTimeParser; @@ -65,6 +66,7 @@ class RefreshWebcalJob extends Job { * @param ITimeFactory $timeFactory */ public function __construct(RefreshWebcalService $refreshWebcalService, IConfig $config, ILogger $logger, ITimeFactory $timeFactory) { + parent::__construct($timeFactory); $this->refreshWebcalService = $refreshWebcalService; $this->config = $config; $this->logger = $logger; @@ -76,7 +78,7 @@ class RefreshWebcalJob extends Job { * * @inheritdoc */ - public function execute($jobList, ILogger $logger = null) { + public function execute(IJobList $jobList, ILogger $logger = null) { $subscription = $this->refreshWebcalService->getSubscription($this->argument['principaluri'], $this->argument['uri']); if (!$subscription) { return; |