mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
24 lines
412 B
PHP
24 lines
412 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Models\Settings;
|
|
use Blacklight\Games;
|
|
|
|
class GamesProcessor
|
|
{
|
|
private bool $echooutput;
|
|
|
|
public function __construct(bool $echooutput)
|
|
{
|
|
$this->echooutput = $echooutput;
|
|
}
|
|
|
|
public function process(): void
|
|
{
|
|
if ((int) Settings::settingValue('lookupgames') !== 0) {
|
|
(new Games)->processGamesReleases();
|
|
}
|
|
}
|
|
}
|