You've already forked Atomcms-edit
40 lines
1.4 KiB
PHP
Executable File
40 lines
1.4 KiB
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Console;
|
|
|
|
use App\Console\Commands\DDoSDetectionCommand;
|
|
use App\Console\Commands\EmulatorMonitorCommand;
|
|
use App\Console\Commands\FixCodeCommand;
|
|
use App\Console\Commands\SystemCheckCommand;
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
class Kernel extends ConsoleKernel
|
|
{
|
|
#[\Override]
|
|
protected function schedule(Schedule $schedule): void
|
|
{
|
|
$schedule->command('radio:check-dj')->everyMinute()->withoutOverlapping();
|
|
$schedule->command('radio:record-songs')->everyFifteenSeconds()->withoutOverlapping();
|
|
$schedule->command('radio:auto-dj')->everyMinute()->withoutOverlapping();
|
|
$schedule->command('maintenance:check-scheduled')->everyMinute()->withoutOverlapping();
|
|
$schedule->command('monitor:emulator')->everyMinute()->withoutOverlapping();
|
|
$schedule->command('monitor:ddos')->everyFiveMinutes()->withoutOverlapping();
|
|
}
|
|
|
|
#[\Override]
|
|
protected function commands(): void
|
|
{
|
|
$this->load(__DIR__ . '/Commands');
|
|
|
|
$this->commands[] = SystemCheckCommand::class;
|
|
$this->commands[] = FixCodeCommand::class;
|
|
$this->commands[] = EmulatorMonitorCommand::class;
|
|
$this->commands[] = DDoSDetectionCommand::class;
|
|
|
|
require base_path('routes/console.php');
|
|
}
|
|
}
|