Fix CronWeekly console task to actually read Weekly

This commit is contained in:
Nabeel Shahzad 2018-08-23 08:26:39 -05:00
parent 91a64113fb
commit e77488c66a
3 changed files with 15 additions and 5 deletions

View File

@ -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
{

View File

@ -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

View File

@ -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());
}
}