|
3 | 3 | namespace Pterodactyl\Console; |
4 | 4 |
|
5 | 5 | use Illuminate\Console\Scheduling\Schedule; |
6 | | -use Pterodactyl\Console\Commands\InfoCommand; |
7 | | -use Pterodactyl\Console\Commands\User\MakeUserCommand; |
8 | | -use Pterodactyl\Console\Commands\User\DeleteUserCommand; |
9 | 6 | use Illuminate\Foundation\Console\Kernel as ConsoleKernel; |
10 | | -use Pterodactyl\Console\Commands\Server\RebuildServerCommand; |
11 | | -use Pterodactyl\Console\Commands\Location\MakeLocationCommand; |
12 | | -use Pterodactyl\Console\Commands\User\DisableTwoFactorCommand; |
13 | | -use Pterodactyl\Console\Commands\Environment\AppSettingsCommand; |
14 | | -use Pterodactyl\Console\Commands\Location\DeleteLocationCommand; |
15 | | -use Pterodactyl\Console\Commands\Schedule\ProcessRunnableCommand; |
16 | | -use Pterodactyl\Console\Commands\Environment\EmailSettingsCommand; |
17 | | -use Pterodactyl\Console\Commands\Environment\DatabaseSettingsCommand; |
18 | | -use Pterodactyl\Console\Commands\Maintenance\CleanServiceBackupFilesCommand; |
19 | 7 |
|
20 | 8 | class Kernel extends ConsoleKernel |
21 | 9 | { |
22 | 10 | /** |
23 | | - * The Artisan commands provided by your application. |
24 | | - * |
25 | | - * @var array |
| 11 | + * Register the commands for the application. |
26 | 12 | */ |
27 | | - protected $commands = [ |
28 | | - AppSettingsCommand::class, |
29 | | - CleanServiceBackupFilesCommand::class, |
30 | | - DatabaseSettingsCommand::class, |
31 | | - DeleteLocationCommand::class, |
32 | | - DeleteUserCommand::class, |
33 | | - DisableTwoFactorCommand::class, |
34 | | - EmailSettingsCommand::class, |
35 | | - InfoCommand::class, |
36 | | - MakeLocationCommand::class, |
37 | | - MakeUserCommand::class, |
38 | | - ProcessRunnableCommand::class, |
39 | | - RebuildServerCommand::class, |
40 | | - ]; |
| 13 | + protected function commands() |
| 14 | + { |
| 15 | + $this->load(__DIR__ . '/Commands'); |
| 16 | + } |
41 | 17 |
|
42 | 18 | /** |
43 | 19 | * Define the application's command schedule. |
|
0 commit comments