File manager - Edit - /var/www/html/portal/app/Console/Kernel.php
Back
<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { /** * Comandos Artisan customizados do projeto */ protected $commands = [ \App\Console\Commands\MakeService::class, \App\Console\Commands\MakeResource::class, ]; /** * Define the application's command schedule. * * MobiAngra: atualização híbrida do feed GTFS-RT. * - Cron (abaixo): atualizador principal; republica public/mobiangra-assets/gtfs/feed.pb. * - Lazy: /live_data chama refreshIfStale() como fallback (também republica o .pb). * - Google lê feed.pb via entrega estática Apache (sem Laravel, sem CORS). * * Requer cron no servidor: * * * * * * cd /caminho/do/projeto && php artisan schedule:run >> /dev/null 2>&1 */ protected function schedule(Schedule $schedule): void { $schedule->command('mobiangra:fetch-positions') ->everyTenSeconds() ->withoutOverlapping() ->runInBackground(); $schedule->command('credenciamento:expirar')->daily(); $schedule->command('convenios:alertas')->dailyAt('08:00'); $schedule->command('empresas-turismo:cadastur-alertas')->dailyAt('08:00'); } /** * Register the commands for the application. */ protected function commands(): void { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings