add chained cron command

This commit is contained in:
Pachira 2016-12-11 15:49:40 +01:00
parent ff1ad6cd56
commit 911b61f221

View file

@ -0,0 +1,34 @@
<?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 = [
PremiumPurgeCommand::class,
PurgeInactiveUsersCommand::class,
RebuildForumCacheCommand::class,
SessionPurgeCommand::class,
StatusCheckCommand::class,
];
}