Pterodactyl-Panel/app/Console/Kernel.php

29 lines
703 B
PHP
Raw Normal View History

<?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.
*/
2017-12-17 20:07:38 +01:00
protected function commands()
{
$this->load(__DIR__ . '/Commands');
}
/**
* 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:schedule:process')->everyMinute()->withoutOverlapping();
$schedule->command('p:maintenance:clean-service-backups')->daily();
}
}