0
0
mirror of https://github.com/sp-tarkov/db-website.git synced 2025-02-08 14:10:46 -05:00
db-website/api/app/Console/Commands/RefreshItemsCache.php
2023-03-02 20:51:47 -05:00

36 lines
657 B
PHP

<?php
namespace App\Console\Commands;
use App\Data\ItemsCollection;
use Illuminate\Console\Command;
class RefreshItemsCache extends Command
{
/**
* The console command name.
*
* @var string
*/
protected $signature = "items:refresh";
/**
* The console command description.
*
* @var string
*/
protected $description = "Refresh all items cache";
/**
* Execute the console command.
*
* @param ItemsCollection $itemsCollection
* @return void
*/
public function handle(ItemsCollection $itemsCollection): void
{
$itemsCollection->refreshAllCache();
}
}