1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 20:32:28 +01:00
Pterodactyl-Panel/app/Console/Kernel.php

53 lines
1.8 KiB
PHP
Raw Normal View History

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