Files
newznab-tmux/app/Services/GamesProcessor.php
T
2026-05-15 14:33:41 +02:00

29 lines
676 B
PHP

<?php
declare(strict_types=1);
namespace App\Services;
use App\Models\Settings;
class GamesProcessor
{
/** @phpstan-ignore property.onlyWritten */
private bool $echooutput;
private GamesService $gamesService;
public function __construct(bool $echooutput, ?GamesService $gamesService = null)
{
$this->echooutput = $echooutput;
$this->gamesService = $gamesService ?? new GamesService;
}
public function process(string $groupID = '', string $guidChar = ''): void
{
if ((int) Settings::settingValue('lookupgames') !== 0) {
$this->gamesService->processGamesReleases($groupID, $guidChar);
}
}
}