2015-12-06 18:58:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Console;
|
|
|
|
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
|
|
|
|
class Kernel extends ConsoleKernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The Artisan commands provided by your application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $commands = [
|
|
|
|
\Pterodactyl\Console\Commands\Inspire::class,
|
2016-01-17 02:42:46 +00:00
|
|
|
\Pterodactyl\Console\Commands\MakeUser::class,
|
2016-01-24 02:42:56 +00:00
|
|
|
\Pterodactyl\Console\Commands\ShowVersion::class,
|
2016-01-26 01:08:48 +00:00
|
|
|
\Pterodactyl\Console\Commands\UpdateEnvironment::class,
|
2016-02-27 23:35:12 +00:00
|
|
|
\Pterodactyl\Console\Commands\RunTasks::class,
|
2016-09-07 21:48:20 +00:00
|
|
|
\Pterodactyl\Console\Commands\ClearServices::class,
|
2016-09-20 23:33:32 +00:00
|
|
|
\Pterodactyl\Console\Commands\UpdateEmailSettings::class,
|
2015-12-06 18:58:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the application's command schedule.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function schedule(Schedule $schedule)
|
|
|
|
{
|
2016-02-27 23:35:12 +00:00
|
|
|
$schedule->command('pterodactyl:tasks')->everyFiveMinutes()->withoutOverlapping();
|
2015-12-06 18:58:49 +00:00
|
|
|
}
|
|
|
|
}
|