Addressing PR comments about not using hardcoded string.
This commit is contained in:
parent
288f87504c
commit
72ea5d43fd
2 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue