Kernel::commands()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * rmarchiv.tk
5
 * (c) 2016-2017 by Marcel 'ryg' Hering
6
 */
7
8
namespace App\Console;
9
10
use Illuminate\Console\Scheduling\Schedule;
11
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
12
13
class Kernel extends ConsoleKernel
14
{
15
    /**
16
     * The Artisan commands provided by your application.
17
     *
18
     * @var array
19
     */
20
    protected $commands = [
21
        Commands\TruncateTables::class,
22
        Commands\IndexSearch::class,
23
        Commands\setReldate::class,
24
        Commands\setVotes::class,
25
        Commands\PlayerCreateInfo::class,
26
        Commands\PlayerRar2Zip::class,
27
        Commands\PT::class,
28
        Commands\TestSearch::class,
29
        Commands\GetMissingGameFilesCommand::class,
30
    ];
31
32
    /**
33
     * Define the application's command schedule.
34
     *
35
     * @param \Illuminate\Console\Scheduling\Schedule $schedule
36
     *
37
     * @return void
38
     */
39
    protected function schedule(Schedule $schedule)
40
    {
41
        $schedule->command('ban:delete-expired')->everyMinute();
42
        $schedule->command('debug:missingfiles')->everyFiveMinutes();
43
    }
44
45
    /**
46
     * Register the Closure based commands for the application.
47
     *
48
     * @return void
49
     */
50
    protected function commands()
51
    {
52
        require base_path('routes/console.php');
53
    }
54
}
55