21 lines
447 B
PHP
21 lines
447 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Services\LivePriceTickService;
|
|
use Illuminate\Console\Command;
|
|
|
|
class PriceTickCommand extends Command
|
|
{
|
|
protected $signature = 'prices:tick';
|
|
|
|
protected $description = 'Fetch live prices, sync products, cache last/list, log snapshot (every 10s)';
|
|
|
|
public function handle(LivePriceTickService $tickService): int
|
|
{
|
|
$tickService->tick();
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|