From 166773879ba20bf7b81f3996a7c4e2a9ff7ee16d Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 6 Feb 2024 11:22:09 +0100 Subject: fix!: Migrate jobs away from deprecated interfaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: Removed ILogFactory::getCustomLogger deprecated method Signed-off-by: Côme Chilliet --- core/Command/Background/Job.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/Command') diff --git a/core/Command/Background/Job.php b/core/Command/Background/Job.php index aeee60bd6a5..b27686a6824 100644 --- a/core/Command/Background/Job.php +++ b/core/Command/Background/Job.php @@ -27,7 +27,6 @@ namespace OC\Core\Command\Background; use OCP\BackgroundJob\IJob; use OCP\BackgroundJob\IJobList; -use OCP\ILogger; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; @@ -37,7 +36,6 @@ use Symfony\Component\Console\Output\OutputInterface; class Job extends Command { public function __construct( protected IJobList $jobList, - protected ILogger $logger, ) { parent::__construct(); } @@ -86,7 +84,7 @@ class Job extends Command { $output->writeln('Something went wrong when trying to retrieve Job with ID ' . $jobId . ' from database'); return 1; } - $job->execute($this->jobList, $this->logger); + $job->start($this->jobList); $job = $this->jobList->getById($jobId); if (($job === null) || ($lastRun !== $job->getLastRun())) { -- cgit v1.2.3