From b65c3eaa6fd8c4eaa987dc7cef020eae4f4935ca Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 17 Dec 2021 01:27:57 +0100 Subject: [PATCH] Remove MediaLibrary from ImageResizer --- classes/ImageResizer.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/classes/ImageResizer.php b/classes/ImageResizer.php index 8197556..6faa6eb 100644 --- a/classes/ImageResizer.php +++ b/classes/ImageResizer.php @@ -7,7 +7,6 @@ use Aweos\Resizer\Lib\MediaPath; use Aweos\Resizer\Models\Setting; use Illuminate\Filesystem\FilesystemAdapter; use Illuminate\Support\Collection; -use Media\Classes\MediaLibrary; use October\Rain\Resize\Resizer; use Storage; @@ -16,15 +15,13 @@ class ImageResizer private FilesystemAdapter $disk; private string $uploadDir; - private MediaLibrary $media; private MediaPath $file; private bool $update; - public function __construct(FilesystemAdapter $disk, string $uploadDir, MediaLibrary $media) + public function __construct(FilesystemAdapter $disk, string $uploadDir) { $this->disk = $disk; $this->uploadDir = $uploadDir; - $this->media = $media; } public function generate(MediaPath $file, bool $update): void