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