From f4d0db3c67127919f431459aa1e430cab4e6d380 Mon Sep 17 00:00:00 2001 From: horus Date: Thu, 17 Nov 2022 19:57:52 +0100 Subject: Change scheduler from closures to artisan commands --- app/Console/Commands/SaveSeasonAiring.php | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 app/Console/Commands/SaveSeasonAiring.php (limited to 'app/Console/Commands/SaveSeasonAiring.php') diff --git a/app/Console/Commands/SaveSeasonAiring.php b/app/Console/Commands/SaveSeasonAiring.php new file mode 100644 index 0000000..5bee978 --- /dev/null +++ b/app/Console/Commands/SaveSeasonAiring.php @@ -0,0 +1,43 @@ +saveSeason(); + sleep(10); + echo "\ncheckIfIsAiring(): \n"; + $background->checkIfIsAiring(); + sleep(10); + echo "\nsaveAiringForAll(): \n"; + $background->saveAiringForAll(); + + return Command::SUCCESS; + } +} -- cgit v1.2.3