add chained cron command
This commit is contained in:
parent
ff1ad6cd56
commit
911b61f221
1 changed files with 34 additions and 0 deletions
34
app/Console/Command/CronCommand.php
Normal file
34
app/Console/Command/CronCommand.php
Normal 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,
|
||||
];
|
||||
}
|
Reference in a new issue