From 911b61f2213e299bc93f6b4cc688b35870857afe Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 11 Dec 2016 15:49:40 +0100 Subject: [PATCH] add chained cron command --- app/Console/Command/CronCommand.php | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 app/Console/Command/CronCommand.php diff --git a/app/Console/Command/CronCommand.php b/app/Console/Command/CronCommand.php new file mode 100644 index 0000000..c405a60 --- /dev/null +++ b/app/Console/Command/CronCommand.php @@ -0,0 +1,34 @@ + + */ +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, + ]; +}