diff --git a/inc/Service/Embed/EmbedService.php b/inc/Service/Embed/EmbedService.php index 13d0b650..ef305943 100644 --- a/inc/Service/Embed/EmbedService.php +++ b/inc/Service/Embed/EmbedService.php @@ -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 {