2015-12-06 18:58:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Console;
|
|
|
|
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
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-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-16 03:13:33 +00:00
|
|
|
use Pterodactyl\Console\Commands\Location\DeleteLocationCommand;
|
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-16 03:13:33 +00:00
|
|
|
DeleteLocationCommand::class,
|
|
|
|
DeleteUserCommand::class,
|
2017-09-16 23:50:12 +00:00
|
|
|
DisableTwoFactorCommand::class,
|
2017-09-16 03:13:33 +00:00
|
|
|
MakeLocationCommand::class,
|
|
|
|
MakeUserCommand::class,
|
|
|
|
// \Pterodactyl\Console\Commands\MakeUser::class,
|
|
|
|
// \Pterodactyl\Console\Commands\ShowVersion::class,
|
|
|
|
// \Pterodactyl\Console\Commands\UpdateEnvironment::class,
|
|
|
|
// \Pterodactyl\Console\Commands\RunTasks::class,
|
|
|
|
// \Pterodactyl\Console\Commands\ClearTasks::class,
|
|
|
|
// \Pterodactyl\Console\Commands\ClearServices::class,
|
|
|
|
// \Pterodactyl\Console\Commands\UpdateEmailSettings::class,
|
|
|
|
// \Pterodactyl\Console\Commands\CleanServiceBackup::class,
|
|
|
|
// \Pterodactyl\Console\Commands\AddNode::class,
|
|
|
|
// \Pterodactyl\Console\Commands\MakeLocationCommand::class,
|
|
|
|
// \Pterodactyl\Console\Commands\RebuildServer::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)
|
|
|
|
{
|
2016-10-21 20:36:40 +00:00
|
|
|
$schedule->command('pterodactyl:tasks')->everyMinute()->withoutOverlapping();
|
|
|
|
$schedule->command('pterodactyl:tasks:clearlog')->twiceDaily(3, 15);
|
2016-11-09 22:59:57 +00:00
|
|
|
$schedule->command('pterodactyl:cleanservices')->twiceDaily(1, 13);
|
2015-12-06 18:58:49 +00:00
|
|
|
}
|
|
|
|
}
|