diff options
Diffstat (limited to 'core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php')
-rw-r--r-- | core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php index d699eac3768..7ab9fb47d54 100644 --- a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php +++ b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php @@ -26,25 +26,23 @@ declare(strict_types=1); */ namespace OC\Core\BackgroundJobs; -use OC\BackgroundJob\QueuedJob; +use OCP\AppFramework\Utility\ITimeFactory; +use OCP\BackgroundJob\QueuedJob; use OCP\IConfig; -use OCP\ILogger; +use Psr\Log\LoggerInterface; class BackgroundCleanupUpdaterBackupsJob extends QueuedJob { + protected IConfig $config; + protected LoggerInterface $log; - /** @var IConfig */ - protected $config; - /** @var ILogger */ - protected $log; - - public function __construct(IConfig $config, ILogger $log) { + public function __construct(IConfig $config, LoggerInterface $log, ITimeFactory $time) { + parent::__construct($time); $this->config = $config; $this->log = $log; } /** * This job cleans up all backups except the latest 3 from the updaters backup directory - * */ public function run($arguments) { $dataDir = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data'); |