Files
pterodactyl-panel/app/Console/Kernel.php
T

29 lines
703 B
PHP
Raw Normal View History

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