diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-02-18 17:46:36 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-02-18 17:46:36 +0100 |
commit | 79b6140e756f53727e1561343b84d1f219e3a246 (patch) | |
tree | 847a433d37975acc44d10ca3bc7c8db9aa2dccb0 | |
parent | 10aa07552c2cfff91495e5356916003f62ff7d75 (diff) |
Fix private API usage in background job
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r-- | lib/Cron/SocialUpdate.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/Cron/SocialUpdate.php b/lib/Cron/SocialUpdate.php index 9f8ee9ba..cfb5a92d 100644 --- a/lib/Cron/SocialUpdate.php +++ b/lib/Cron/SocialUpdate.php @@ -1,4 +1,7 @@ <?php + +declare(strict_types=1); + /** * @copyright 2020 Matthias Heinisch <nextcloud@matthiasheinisch.de> * @@ -26,16 +29,20 @@ namespace OCA\Contacts\Cron; use OCA\Contacts\Service\SocialApiService; use OCP\AppFramework\Http; +use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\IJobList; +use OCP\BackgroundJob\QueuedJob; -class SocialUpdate extends \OC\BackgroundJob\QueuedJob { - /** @var SocialUpdateService */ +class SocialUpdate extends QueuedJob { + /** @var SocialApiService */ private $social; /** @var IJobList */ private $jobList; - public function __construct(SocialApiService $social, + public function __construct(ITimeFactory $time, + SocialApiService $social, IJobList $jobList) { + parent::__construct($time); $this->social = $social; $this->jobList = $jobList; } |