Kernel::commands()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace JunaidQadirB\Cray\Console;
4
5
use Illuminate\Console\Scheduling\Schedule;
6
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7
use JunaidQadirB\Cray\Console\Commands\ControllerMakeCommand;
8
use JunaidQadirB\Cray\Console\Commands\FactoryMakeCommand;
9
use JunaidQadirB\Cray\Console\Commands\Cray;
10
use JunaidQadirB\Cray\Console\Commands\MigrateMakeCommand;
11
use JunaidQadirB\Cray\Console\Commands\ModelMakeCommand;
12
use JunaidQadirB\Cray\Console\Commands\RequestMakeCommand;
13
use JunaidQadirB\Cray\Console\Commands\ViewMakeCommand;
14
15
class Kernel extends ConsoleKernel
16
{
17
    /**
18
     * The Artisan commands provided by your application.
19
     *
20
     * @var array
21
     */
22
    protected $commands = [
23
        ControllerMakeCommand::class,
24
        FactoryMakeCommand::class,
25
        Cray::class,
26
        MigrateMakeCommand::class,
27
        ModelMakeCommand::class,
28
        RequestMakeCommand::class,
29
        ViewMakeCommand::class,
30
    ];
31
32
    /**
33
     * Define the application's command schedule.
34
     *
35
     * @param Schedule $schedule
36
     *
37
     * @return void
38
     */
39
    protected function schedule(Schedule $schedule)
40
    {
41
        // $schedule->command('inspire')
42
        //          ->hourly();
43
    }
44
45
    /**
46
     * Register the commands for the application.
47
     *
48
     * @return void
49
     */
50
    protected function commands()
51
    {
52
        $this->load(__DIR__ . '/Commands');
53
    }
54
}
55