Remove MediaLibrary from ImageResizer

This commit is contained in:
philipp lang 2021-12-17 01:27:57 +01:00
parent 176e1d8247
commit b65c3eaa6f
1 changed files with 1 additions and 4 deletions

View File

@ -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