Addressing PR comments about not using hardcoded string.

This commit is contained in:
Skyler Mäntysaari 2023-02-17 22:14:01 +02:00
parent 288f87504c
commit 72ea5d43fd
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,8 @@ use App\Cache\RedisCache;
use App\Constants\CacheMethods;
use App\Models\BaseTemplate;
use TikScraper\Constants\UserAgents as TikScraperUserAgents;
class Wrappers {
/**
* Setup of Latte template engine
@ -162,6 +164,8 @@ class Wrappers {
}
}
$options["user_agent"] = Misc::env("USER_AGENT", TikScraperUserAgents::DEFAULT);
return new \TikScraper\Api($options, $cacheEngine);
}
}