| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Kernel extends ConsoleKernel |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The Artisan commands provided by your application. |
||
| 15 | * |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $commands = [ |
||
| 19 | // |
||
| 20 | ]; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Define the application's command schedule. |
||
| 24 | * |
||
| 25 | * @param \Illuminate\Console\Scheduling\Schedule $schedule |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | protected function schedule(Schedule $schedule) |
||
| 30 | { |
||
| 31 | // $schedule->command('inspire') |
||
| 32 | // ->hourly(); |
||
| 33 | $schedule->command(DailyScan::class)->withoutOverlapping()->everyMinute()->sendOutputTo('scanResult.log', true); |
||
| 34 | $schedule->command(ScannerTimeout::class)->everyMinute(); |
||
| 35 | $schedule->command(RestockCredits::class)->dailyAt('00:00'); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Register the commands for the application. |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | protected function commands() |
||
| 48 | } |
||
| 49 | } |
||
| 50 |