Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Kernel | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
2 | |
100.00% |
1 / 1 |
| schedule | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | |||||
| commands | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Console; |
| 4 | |
| 5 | use App\Console\Commands\DeleteUnconfirmedCustomers; |
| 6 | use App\Jobs\StartStatJobs; |
| 7 | use Illuminate\Console\Scheduling\Schedule; |
| 8 | use Illuminate\Foundation\Console\Kernel as ConsoleKernel; |
| 9 | |
| 10 | class Kernel extends ConsoleKernel |
| 11 | { |
| 12 | /** |
| 13 | * The Artisan commands provided by your application. |
| 14 | * |
| 15 | * @var array |
| 16 | */ |
| 17 | protected $commands = []; |
| 18 | |
| 19 | /** |
| 20 | * Define the application's command schedule. |
| 21 | * |
| 22 | * @param \Illuminate\Console\Scheduling\Schedule $schedule |
| 23 | * @return void |
| 24 | */ |
| 25 | protected function schedule(Schedule $schedule): void |
| 26 | { |
| 27 | // @codeCoverageIgnoreStart |
| 28 | $schedule->job(StartStatJobs::class)->dailyAt('03:30'); |
| 29 | $schedule->command(DeleteUnconfirmedCustomers::class)->dailyAt('05:30'); |
| 30 | // @codeCoverageIgnoreEnd |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Register the commands for the application. |
| 35 | * |
| 36 | * @return void |
| 37 | */ |
| 38 | protected function commands(): void |
| 39 | { |
| 40 | $this->load(__DIR__ . '/Commands'); |
| 41 | |
| 42 | require base_path('routes/console.php'); |
| 43 | } |
| 44 | } |