mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
27 lines
588 B
PHP
27 lines
588 B
PHP
<?php
|
|
|
|
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(): void
|
|
{
|
|
if ((int) Settings::settingValue('lookupgames') !== 0) {
|
|
$this->gamesService->processGamesReleases();
|
|
}
|
|
}
|
|
}
|