Files
boursecu_server/app/Console/Commands/SyncProductPrices.php
T

21 lines
429 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\LivePriceTickService;
use Illuminate\Console\Command;
class SyncProductPrices extends Command
{
protected $signature = 'product:sync-prices';
protected $description = 'Alias for prices:tick (backward compatible cron)';
public function handle(LivePriceTickService $tickService): int
{
$tickService->tick();
return self::SUCCESS;
}
}