Fix CronWeekly console task to actually read Weekly
This commit is contained in:
@@ -8,7 +8,11 @@ use App\Events\CronMonthly;
|
|||||||
/**
|
/**
|
||||||
* This just calls the CronMonthly event, so all of the
|
* This just calls the CronMonthly 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
|
* @package App\Console\Cron
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
class Monthly extends Command
|
class Monthly extends Command
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ use App\Events\CronNightly;
|
|||||||
/**
|
/**
|
||||||
* This just calls the CronNightly event, so all of the
|
* This just calls the CronNightly 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
|
* @package App\Console\Cron
|
||||||
*/
|
*/
|
||||||
class Nightly extends Command
|
class Nightly extends Command
|
||||||
|
|||||||
@@ -3,17 +3,20 @@
|
|||||||
namespace App\Console\Cron;
|
namespace App\Console\Cron;
|
||||||
|
|
||||||
use App\Console\Command;
|
use App\Console\Command;
|
||||||
use App\Events\CronMonthly;
|
use App\Events\CronWeekly;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This just calls the CronWeekly event, so all of the
|
* 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
|
* @package App\Console\Cron
|
||||||
*/
|
*/
|
||||||
class Weekly extends Command
|
class Weekly extends Command
|
||||||
{
|
{
|
||||||
protected $signature = 'cron:monthly';
|
protected $signature = 'cron:weekly';
|
||||||
protected $description = 'Run the monthly cron tasks';
|
protected $description = 'Run the weekly cron tasks';
|
||||||
protected $schedule;
|
protected $schedule;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -22,6 +25,6 @@ class Weekly extends Command
|
|||||||
public function handle(): void
|
public function handle(): void
|
||||||
{
|
{
|
||||||
$this->redirectLoggingToStdout('cron');
|
$this->redirectLoggingToStdout('cron');
|
||||||
event(new CronMonthly());
|
event(new CronWeekly());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user