1 | <?php |
||
24 | class Kernel extends ConsoleKernel |
||
25 | { |
||
26 | /** |
||
27 | * Все консольные команды регистрируются в этом поле. |
||
28 | * |
||
29 | * @see https://laravel.com/docs/5.4/artisan |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $commands = [ |
||
33 | Commands\IdeHelperRun::class, |
||
34 | Commands\ArticlesImport::class, |
||
35 | Commands\GitHubDocsSync::class, |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * Тут регистрируются команды, которые будут выполняться раз в определённый промежуток времени. |
||
40 | * |
||
41 | * @see https://laravel.com/docs/5.4/scheduling |
||
42 | * @param \Illuminate\Console\Scheduling\Schedule $schedule |
||
43 | */ |
||
44 | protected function schedule(Schedule $schedule): void |
||
52 | |||
53 | /** |
||
54 | * Регистрация команд, основанных на замыканиях. |
||
55 | * |
||
56 | * @see https://laravel.com/docs/5.4/artisan#closure-commands |
||
57 | */ |
||
58 | protected function commands(): void |
||
62 | } |
||
63 |