Completed
Push — master ( 6ad044...8a4f85 )
by Sherif
03:22
created

Kernel::commands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Console;
4
5
use Illuminate\Console\Scheduling\Schedule;
6
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7
use \App\Modules\V1\Core\Console\Commands\GenerateDoc as GenerateDoc;
8
use App\Modules\V1\Notifications\Console\Commands\MakeNotificationsCommand as MakeNotificationsCommand;
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
        GenerateDoc::class,
19
        MakeNotificationsCommand::class,
20
        UpdateTeachersWorkingHoursCommand::class
21
    ];
22
23
    /**
24
     * Define the application's command schedule.
25
     *
26
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
27
     * @return void
28
     */
29
    protected function schedule(Schedule $schedule)
30
    {
31
        // $schedule->command('inspire')
32
        //          ->hourly();
33
    }
34
35
    /**
36
     * Register the commands for the application.
37
     *
38
     * @return void
39
     */
40
    protected function commands()
41
    {
42
        $this->load(__DIR__.'/Commands');
43
44
        require base_path('routes/console.php');
45
    }
46
}
47