Remove MediaLibrary from TagGenerator

This commit is contained in:
philipp lang 2021-12-17 01:28:54 +01:00
parent b65c3eaa6f
commit 2d39d815a8
1 changed files with 0 additions and 3 deletions

View File

@ -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);
} }