This commit is contained in:
philipp lang 2022-02-15 18:06:51 +01:00
parent e3399a65c8
commit 395c7ec62a
4 changed files with 15 additions and 5 deletions

View File

@ -11,10 +11,10 @@ abstract class Compressor
protected MediaPath $media;
abstract function make(string $path): array;
abstract protected function getExtension();
abstract protected function getExtension(): string;
abstract public function getExtensionRegex(): string;
abstract public function start(): void;
abstract public function end(): void;
public function __construct(MediaPath $media)
{

View File

@ -24,4 +24,14 @@ class DefaultCompressor extends Compressor {
return false;
}
public function start(): void
{
//
}
public function end(): void
{
//
}
}

View File

@ -17,7 +17,7 @@ use Symfony\Component\Console\Input\InputOption;
class ResizeMake extends Command
{
public $media = null;
public MediaLibrary $media;
/**
* @var string The console command name.

View File

@ -6,8 +6,8 @@ use Aweos\Resizer\Compressors\Compressor;
use Aweos\Resizer\Compressors\Factory as CompressorFactory;
use Aweos\Resizer\Models\Setting;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Storage;
use MediaLibrary;
use Storage;
class MediaPath
{