This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/app/Console/Command/CronCommand.php

35 lines
741 B
PHP

<?php
/**
* Holds the cron command.
* @package Sakura
*/
namespace Sakura\Console\Command;
use CLIFramework\ChainedCommand;
/**
* Runs all data update commands chained.
* @package Sakura
* @author Julian van de Groep <me@flash.moe>
*/
class CronCommand extends ChainedCommand
{
/**
* A quick description of this command.
* @return string.
*/
public function brief(): string
{
return 'Runs all data update commands chained.';
}
public $commands = [
PurgeInactiveUsersCommand::class,
SessionPurgeCommand::class,
PremiumPurgeCommand::class,
StatusCheckCommand::class,
ResyncForumStatsCommand::class,
RebuildForumCacheCommand::class,
];
}