36 lines
785 B
PHP
36 lines
785 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,
|
|
OsuLeaderboardUpdateCommand::class,
|
|
];
|
|
}
|