%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/www/varak.net/nextcloud.varak.net/apps/circles/lib/Cron/
Upload File :
Create Path :
Current File : //proc/thread-self/root/www/varak.net/nextcloud.varak.net/apps/circles/lib/Cron/Maintenance.php

<?php

declare(strict_types=1);


/**
 * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */


namespace OCA\Circles\Cron;

use OCA\Circles\Service\MaintenanceService;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJob;
use OCP\BackgroundJob\TimedJob;

class Maintenance extends TimedJob {
	private MaintenanceService $maintenanceService;


	/**
	 * @param ITimeFactory $time
	 * @param MaintenanceService $maintenanceService
	 */
	public function __construct(ITimeFactory $time, MaintenanceService $maintenanceService) {
		parent::__construct($time);

		$this->setInterval(10);
		$this->setTimeSensitivity(IJob::TIME_SENSITIVE);

		$this->maintenanceService = $maintenanceService;
	}


	/**
	 * @param $argument
	 */
	protected function run($argument) {
		$this->maintenanceService->runMaintenances();
	}
}

Zerion Mini Shell 1.0