2015-12-06 19:58:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Console;
|
|
|
|
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
|
|
|
|
class Kernel extends ConsoleKernel
|
|
|
|
{
|
|
|
|
/**
|
2017-12-17 20:07:38 +01:00
|
|
|
* Register the commands for the application.
|
2015-12-06 19:58:49 +01:00
|
|
|
*/
|
2017-12-17 20:07:38 +01:00
|
|
|
protected function commands()
|
|
|
|
{
|
|
|
|
$this->load(__DIR__ . '/Commands');
|
|
|
|
}
|
2015-12-06 19:58:49 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the application's command schedule.
|
|
|
|
*
|
2017-08-22 05:10:48 +02:00
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
2015-12-06 19:58:49 +01:00
|
|
|
*/
|
|
|
|
protected function schedule(Schedule $schedule)
|
|
|
|
{
|
2017-09-24 19:31:31 +02:00
|
|
|
$schedule->command('p:schedule:process')->everyMinute()->withoutOverlapping();
|
2017-09-20 05:10:14 +02:00
|
|
|
$schedule->command('p:maintenance:clean-service-backups')->daily();
|
2015-12-06 19:58:49 +01:00
|
|
|
}
|
|
|
|
}
|