summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php')
-rw-r--r--apps/dav/lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/apps/dav/lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php b/apps/dav/lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php
index 2fdb7617937..a338a172d66 100644
--- a/apps/dav/lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php
+++ b/apps/dav/lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright 2017 Georg Ehrke <oc.list@georgehrke.com>
*
@@ -22,8 +25,9 @@
*/
namespace OCA\DAV\BackgroundJob;
-use OC\BackgroundJob\QueuedJob;
use OCA\DAV\CalDAV\BirthdayService;
+use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\QueuedJob;
use OCP\IConfig;
class GenerateBirthdayCalendarBackgroundJob extends QueuedJob {
@@ -34,14 +38,11 @@ class GenerateBirthdayCalendarBackgroundJob extends QueuedJob {
/** @var IConfig */
private $config;
- /**
- * GenerateAllBirthdayCalendarsBackgroundJob constructor.
- *
- * @param BirthdayService $birthdayService
- * @param IConfig $config
- */
- public function __construct(BirthdayService $birthdayService,
+ public function __construct(ITimeFactory $time,
+ BirthdayService $birthdayService,
IConfig $config) {
+ parent::__construct($time);
+
$this->birthdayService = $birthdayService;
$this->config = $config;
}