Files
ntspi-app/app/Ship/Kernels/ConsoleKernel.php
T
F4ilji 709c51ea49 remove: all deploy UI/backend code, keep _deploy folder only
- Delete DeployRunCommand, DeployController, deploy API routes
- Delete Dashboard/Deploy Vue pages and components
- Remove deploy route from web.php
- Remove deploy quick action from config
- Remove DeployRunCommand from ConsoleKernel
2026-07-02 17:36:42 +05:00

50 lines
1.3 KiB
PHP
Executable File

<?php
namespace App\Ship\Kernels;
use AlxDorosenco\PortoForLaravel\Loaders\CommandsLoader;
use AlxDorosenco\PortoForLaravel\Loaders\RoutesLoader;
use App\Containers\Dashboard\Commands\FetchEmailNewsCommand;
use App\Ship\Commands\InitRoles;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as LaravelConsoleKernel;
class ConsoleKernel extends LaravelConsoleKernel
{
use CommandsLoader;
use RoutesLoader;
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('sitemap:generate')->dailyAt('03:00');
// Получение новостей из Email каждые 5 минут
$schedule->command(FetchEmailNewsCommand::class)
->everyFiveMinutes()
->withoutOverlapping()
->onOneServer();
}
protected $commands = [
InitRoles::class,
FetchEmailNewsCommand::class,
];
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->loadCommandsForConsoleKernel();
$this->loadRoutesForConsoleKernel();
}
}