diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-05 10:13:34 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-05 10:13:34 +0100 |
commit | a0f6a6545b59b1061e96e7d17d8ec6d6f32e615e (patch) | |
tree | b98e1679b900f1518acdcea69884c25f1cd0f962 /apps/files_sharing/lib/BackgroundJob | |
parent | 944be7950a0199dbc48b99dac936987b13dd0383 (diff) | |
download | nextcloud-server-a0f6a6545b59b1061e96e7d17d8ec6d6f32e615e.tar.gz nextcloud-server-a0f6a6545b59b1061e96e7d17d8ec6d6f32e615e.zip |
Use TimedJob from OCP instead of OC
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/lib/BackgroundJob')
-rw-r--r-- | apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php b/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php index d35f35d20f2..687dcd25f8b 100644 --- a/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php +++ b/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php @@ -26,7 +26,8 @@ declare(strict_types=1); */ namespace OCA\Files_Sharing\BackgroundJob; -use OC\BackgroundJob\TimedJob; +use OCP\AppFramework\Utility\ITimeFactory; +use OCP\BackgroundJob\TimedJob; use OCP\IDBConnection; use OCP\OCS\IDiscoveryService; @@ -36,8 +37,10 @@ class FederatedSharesDiscoverJob extends TimedJob { /** @var IDiscoveryService */ private $discoveryService; - public function __construct(IDBConnection $connection, + public function __construct(ITimeFactory $time, + IDBConnection $connection, IDiscoveryService $discoveryService) { + parent::__construct($time); $this->connection = $connection; $this->discoveryService = $discoveryService; |