Remove MediaLibrary from ImageResizer
This commit is contained in:
parent
176e1d8247
commit
b65c3eaa6f
|
@ -7,7 +7,6 @@ use Aweos\Resizer\Lib\MediaPath;
|
||||||
use Aweos\Resizer\Models\Setting;
|
use Aweos\Resizer\Models\Setting;
|
||||||
use Illuminate\Filesystem\FilesystemAdapter;
|
use Illuminate\Filesystem\FilesystemAdapter;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Media\Classes\MediaLibrary;
|
|
||||||
use October\Rain\Resize\Resizer;
|
use October\Rain\Resize\Resizer;
|
||||||
use Storage;
|
use Storage;
|
||||||
|
|
||||||
|
@ -16,15 +15,13 @@ class ImageResizer
|
||||||
|
|
||||||
private FilesystemAdapter $disk;
|
private FilesystemAdapter $disk;
|
||||||
private string $uploadDir;
|
private string $uploadDir;
|
||||||
private MediaLibrary $media;
|
|
||||||
private MediaPath $file;
|
private MediaPath $file;
|
||||||
private bool $update;
|
private bool $update;
|
||||||
|
|
||||||
public function __construct(FilesystemAdapter $disk, string $uploadDir, MediaLibrary $media)
|
public function __construct(FilesystemAdapter $disk, string $uploadDir)
|
||||||
{
|
{
|
||||||
$this->disk = $disk;
|
$this->disk = $disk;
|
||||||
$this->uploadDir = $uploadDir;
|
$this->uploadDir = $uploadDir;
|
||||||
$this->media = $media;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function generate(MediaPath $file, bool $update): void
|
public function generate(MediaPath $file, bool $update): void
|
||||||
|
|
Loading…
Reference in New Issue