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

35 lines
1.0 KiB
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2018 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\GroupFolders\Command\ExpireGroup;
use OC\Core\Command\Base;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Base class for the group folder expiration commands.
*/
class ExpireGroupBase extends Base {
public function __construct() {
parent::__construct();
}
protected function configure(): void {
$this
->setName('groupfolders:expire')
->setDescription('Trigger expiration for files stored in group folders (trash and versions). Currently disabled.');
parent::configure();
}
protected function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln('<error>groupfolder expiration handling is currently disabled because there is nothing to expire. Enable the "Delete Files" or/and "Versions" app to enable this feature.</error>');
return 0;
}
}