EmbedService.php: add missing dependencies

This commit is contained in:
fowr 2025-04-02 09:05:07 -03:00
parent fe5368f096
commit 9df6cdbf28

View file

@ -16,11 +16,20 @@ class EmbedService {
private int $thumb_download_timeout;
public function __construct(LogDriver $log, OembedExtractor $oembed_extractor, array $embed_entries, int $thumb_download_timeout) {
public function __construct(
LogDriver $log,
OembedExtractor $oembed_extractor,
HttpDriver $http,
array $embed_entries,
int $thumb_download_timeout,
string $tmp_dir,
) {
$this->log = $log;
$this->oembed_extractor = $oembed_extractor;
$this->http = $http;
$this->embed_entries = $embed_entries;
$this->thumb_download_timeout = $thumb_download_timeout;
$this->tmp_dir = $tmp_dir;
}
private function make_tmp_file(): string {