22 lines
530 B
PHP
22 lines
530 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Services\ProductPriceSyncService;
|
|
use Illuminate\Console\Command;
|
|
|
|
class SyncProductPrices extends Command
|
|
{
|
|
protected $signature = 'product:sync-prices';
|
|
|
|
protected $description = 'Sync variable product prices from external feeds (every ~30s via scheduler)';
|
|
|
|
public function handle(ProductPriceSyncService $syncService): int
|
|
{
|
|
// کران: همیشه فید تازه از zaarbox
|
|
$syncService->syncAll(true);
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|