Fix CronWeekly console task to actually read Weekly
This commit is contained in:
parent
91a64113fb
commit
e77488c66a
@ -8,7 +8,11 @@ use App\Events\CronMonthly;
|
||||
/**
|
||||
* This just calls the CronMonthly event, so all of the
|
||||
* listeners, etc can just be called to run those tasks
|
||||
*
|
||||
* The actual cron tasks are in app/Cron
|
||||
*
|
||||
* @package App\Console\Cron
|
||||
*
|
||||
*/
|
||||
class Monthly extends Command
|
||||
{
|
||||
|
@ -8,6 +8,9 @@ use App\Events\CronNightly;
|
||||
/**
|
||||
* This just calls the CronNightly event, so all of the
|
||||
* listeners, etc can just be called to run those tasks
|
||||
*
|
||||
* The actual cron tasks are in app/Cron
|
||||
*
|
||||
* @package App\Console\Cron
|
||||
*/
|
||||
class Nightly extends Command
|
||||
|
@ -3,17 +3,20 @@
|
||||
namespace App\Console\Cron;
|
||||
|
||||
use App\Console\Command;
|
||||
use App\Events\CronMonthly;
|
||||
use App\Events\CronWeekly;
|
||||
|
||||
/**
|
||||
* This just calls the CronWeekly event, so all of the
|
||||
* listeners, etc can just be called to run those tasks
|
||||
* listeners, etc can just be called to run those tasks.
|
||||
*
|
||||
* The actual cron tasks are in app/Cron
|
||||
*
|
||||
* @package App\Console\Cron
|
||||
*/
|
||||
class Weekly extends Command
|
||||
{
|
||||
protected $signature = 'cron:monthly';
|
||||
protected $description = 'Run the monthly cron tasks';
|
||||
protected $signature = 'cron:weekly';
|
||||
protected $description = 'Run the weekly cron tasks';
|
||||
protected $schedule;
|
||||
|
||||
/**
|
||||
@ -22,6 +25,6 @@ class Weekly extends Command
|
||||
public function handle(): void
|
||||
{
|
||||
$this->redirectLoggingToStdout('cron');
|
||||
event(new CronMonthly());
|
||||
event(new CronWeekly());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user