From a0f6a6545b59b1061e96e7d17d8ec6d6f32e615e Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 5 Dec 2022 10:13:34 +0100 Subject: Use TimedJob from OCP instead of OC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- .../files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/files_sharing/lib/BackgroundJob') 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; -- cgit v1.2.3