%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/cospend/lib/Cron/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/cospend/lib/Cron/AutoExport.php |
<?php /** * Nextcloud - Cospend * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * */ namespace OCA\Cospend\Cron; use OCA\Cospend\Service\ProjectService; use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\TimedJob; class AutoExport extends TimedJob { public function __construct( ITimeFactory $time, private ProjectService $projectService ) { parent::__construct($time); // Run each day $this->setInterval(24 * 60 * 60); } /** * @param $argument * @return void */ protected function run($argument): void { $this->projectService->cronAutoExport(); } }