Total Complexity | 2 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Kernel extends ConsoleKernel |
||
10 | { |
||
11 | /** |
||
12 | * The Artisan commands provided by your application. |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $commands = [ |
||
17 | // |
||
18 | ]; |
||
19 | |||
20 | /** |
||
21 | * Define the application's command schedule. |
||
22 | * |
||
23 | * @param \Illuminate\Console\Scheduling\Schedule $schedule |
||
24 | * @return void |
||
25 | */ |
||
26 | protected function schedule(Schedule $schedule) |
||
27 | { |
||
28 | $logPath = storage_path('logs/schedule.log'); |
||
29 | |||
30 | $schedule->command(SendEmailsExpiringRepetitiveEvents::class) |
||
31 | ->daily() |
||
32 | ->appendOutputTo($logPath) |
||
33 | ->emailOutputTo(env('WEBMASTER_MAIL')); |
||
34 | |||
35 | 118 | $schedule->command('sitemap:generate')->daily(); |
|
36 | |||
37 | 118 | // Backup |
|
38 | // $schedule->command('backup:clean')->weekly()->sundays()->at('00:00'); |
||
39 | 118 | $schedule->command('backup:run')->weekly()->sundays()->at('00:30'); |
|
40 | 118 | } |
|
41 | |||
42 | /** |
||
43 | * Register the commands for the application. |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | protected function commands() |
||
52 | } |
||
53 | } |
||
54 |