2026-06-10 18:25:05 +03:30
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
2026-06-13 17:35:40 +03:30
|
|
|
use App\Services\LivePriceTickService;
|
2026-06-10 18:25:05 +03:30
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
|
|
|
|
class SyncProductPrices extends Command
|
|
|
|
|
{
|
|
|
|
|
protected $signature = 'product:sync-prices';
|
|
|
|
|
|
2026-06-13 17:35:40 +03:30
|
|
|
protected $description = 'Alias for prices:tick (backward compatible cron)';
|
2026-06-10 18:25:05 +03:30
|
|
|
|
2026-06-13 17:35:40 +03:30
|
|
|
public function handle(LivePriceTickService $tickService): int
|
2026-06-10 18:25:05 +03:30
|
|
|
{
|
2026-06-13 17:35:40 +03:30
|
|
|
$tickService->tick();
|
2026-06-10 18:25:05 +03:30
|
|
|
|
|
|
|
|
return self::SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
}
|