Remove MediaLibrary from TagGenerator
This commit is contained in:
parent
b65c3eaa6f
commit
2d39d815a8
|
@ -9,12 +9,10 @@ use Aweos\Resizer\Models\Setting;
|
||||||
use Cache;
|
use Cache;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Media\Classes\MediaLibrary;
|
|
||||||
use Storage;
|
use Storage;
|
||||||
|
|
||||||
class TagGenerator {
|
class TagGenerator {
|
||||||
|
|
||||||
public MediaLibrary $media;
|
|
||||||
public array $breakpoints;
|
public array $breakpoints;
|
||||||
public $path;
|
public $path;
|
||||||
private CompressorFactory $compressorFactory;
|
private CompressorFactory $compressorFactory;
|
||||||
|
@ -25,7 +23,6 @@ class TagGenerator {
|
||||||
public function __construct(CompressorFactory $compressorFactory)
|
public function __construct(CompressorFactory $compressorFactory)
|
||||||
{
|
{
|
||||||
$this->compressorFactory = $compressorFactory;
|
$this->compressorFactory = $compressorFactory;
|
||||||
$this->media = MediaLibrary::instance();
|
|
||||||
$this->breakpoints = Setting::get('breakpoints');
|
$this->breakpoints = Setting::get('breakpoints');
|
||||||
ksort($this->breakpoints);
|
ksort($this->breakpoints);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue