From 9df6cdbf287afa710a03e8409896618138dacf59 Mon Sep 17 00:00:00 2001 From: fowr <89118232+perdedora@users.noreply.github.com> Date: Wed, 2 Apr 2025 09:05:07 -0300 Subject: [PATCH] EmbedService.php: add missing dependencies --- inc/Service/Embed/EmbedService.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 {