summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-30 10:00:14 +0100
committerGitHub <noreply@github.com>2020-11-30 10:00:14 +0100
commit9be5caa9371bc2acad3d0b517d0aa069c6635c77 (patch)
tree993bdb8d07b232e6b7e3e9a6e549f153cad42562 /apps/dav/lib
parent528516b69f8e8feaae88b033422947101f0369f5 (diff)
parent6166e1a157774b7c3c1ee8f304ef96ff2efe3e92 (diff)
downloadnextcloud-server-9be5caa9371bc2acad3d0b517d0aa069c6635c77.tar.gz
nextcloud-server-9be5caa9371bc2acad3d0b517d0aa069c6635c77.zip
Merge pull request #24340 from nextcloud/td/psalm/job_execute
Use proper OCP\BackgroundJobs\Job
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/BackgroundJob/RefreshWebcalJob.php6
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;