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
|
|
|
|
{
|
|
|
|
/**
|
2017-12-17 19:07:38 +00:00
|
|
|
* Register the commands for the application.
|
2015-12-06 18:58:49 +00:00
|
|
|
*/
|
2017-12-17 19:07:38 +00:00
|
|
|
protected function commands()
|
|
|
|
{
|
|
|
|
$this->load(__DIR__ . '/Commands');
|
|
|
|
}
|
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-24 17:31:31 +00:00
|
|
|
$schedule->command('p:schedule:process')->everyMinute()->withoutOverlapping();
|
2017-09-20 03:10:14 +00:00
|
|
|
$schedule->command('p:maintenance:clean-service-backups')->daily();
|
2015-12-06 18:58:49 +00:00
|
|
|
}
|
|
|
|
}
|