f7cloud_client/apps/dav/lib/Command/RetentionCleanupCommand.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

29 lines
691 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2021 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\DAV\Command;
use OCA\DAV\CalDAV\RetentionService;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class RetentionCleanupCommand extends Command {
public function __construct(
private RetentionService $service,
) {
parent::__construct('dav:retention:clean-up');
}
protected function execute(InputInterface $input, OutputInterface $output): int {
$this->service->cleanUp();
return self::SUCCESS;
}
}