[PLUGINS] Remove scripts. These will need to be implemented with Commands

This commit is contained in:
2021-04-25 21:24:43 +00:00
parent 3d8c348cb8
commit 7dab063a72
3 changed files with 4 additions and 83 deletions

View File

@@ -28,7 +28,6 @@ use App\Entity\AttachmentThumbnail;
use App\Util\Common;
use Exception;
use Jcupitt\Vips;
use Symfony\Component\HttpFoundation\File\File as SymfonyFile;
class ImageEncoder extends Plugin
{
@@ -48,9 +47,9 @@ class ImageEncoder extends Plugin
*
* @return bool
*/
public function onAttachmentValidation(SymfonyFile &$sfile, ?string &$mimetype = null): bool
public function onAttachmentValidation(\SplFileInfo &$file, ?string &$mimetype = null): bool
{
$original_mimetype = $mimetype ?? $sfile->getMimeType();
$original_mimetype = $mimetype;
// TODO: Encode in place
//$mimetype = self::preferredType();
return Event::stop;