Files
pterodactyl-panel/app/Console/Kernel.php
T

53 lines
1.8 KiB
PHP
Raw Normal View History

2015-12-06 13:58:49 -05:00
<?php
namespace Pterodactyl\Console;
use Illuminate\Console\Scheduling\Schedule;
2017-09-16 19:47:14 -05:00
use Pterodactyl\Console\Commands\InfoCommand;
use Pterodactyl\Console\Commands\User\MakeUserCommand;
use Pterodactyl\Console\Commands\User\DeleteUserCommand;
2015-12-06 13:58:49 -05:00
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
2017-09-19 22:10:14 -05:00
use Pterodactyl\Console\Commands\Server\RebuildServerCommand;
use Pterodactyl\Console\Commands\Location\MakeLocationCommand;
use Pterodactyl\Console\Commands\User\DisableTwoFactorCommand;
2017-09-22 21:19:57 -05:00
use Pterodactyl\Console\Commands\Environment\AppSettingsCommand;
use Pterodactyl\Console\Commands\Location\DeleteLocationCommand;
2017-09-16 23:10:00 -05:00
use Pterodactyl\Console\Commands\Schedule\ProcessRunnableCommand;
use Pterodactyl\Console\Commands\Environment\EmailSettingsCommand;
2017-09-22 21:19:57 -05:00
use Pterodactyl\Console\Commands\Environment\DatabaseSettingsCommand;
2017-09-19 22:10:14 -05:00
use Pterodactyl\Console\Commands\Maintenance\CleanServiceBackupFilesCommand;
2015-12-06 13:58:49 -05:00
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
2017-09-22 21:19:57 -05:00
AppSettingsCommand::class,
2017-09-19 22:10:14 -05:00
CleanServiceBackupFilesCommand::class,
2017-09-22 21:19:57 -05:00
DatabaseSettingsCommand::class,
DeleteLocationCommand::class,
DeleteUserCommand::class,
DisableTwoFactorCommand::class,
EmailSettingsCommand::class,
2017-09-16 19:47:14 -05:00
InfoCommand::class,
MakeLocationCommand::class,
MakeUserCommand::class,
2017-09-16 23:10:00 -05:00
ProcessRunnableCommand::class,
2017-09-19 22:10:14 -05:00
RebuildServerCommand::class,
2015-12-06 13:58:49 -05:00
];
/**
* Define the application's command schedule.
*
2017-08-21 22:10:48 -05:00
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2015-12-06 13:58:49 -05:00
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('p:schedule:process')->everyMinute()->withoutOverlapping();
2017-09-19 22:10:14 -05:00
$schedule->command('p:maintenance:clean-service-backups')->daily();
2015-12-06 13:58:49 -05:00
}
}