Files
newznab-tmux/app/Services/ConsolesProcessor.php
T
2026-02-26 14:26:07 +01:00

26 lines
478 B
PHP

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