[ImageThumbnail] Finish image thumbnailing functionality

This commit is contained in:
2021-04-16 15:57:25 +00:00
parent 19850b5e0d
commit 716ca063d5
7 changed files with 63 additions and 36 deletions

View File

@@ -23,6 +23,7 @@ namespace App\Entity;
use App\Core\DB\DB;
use App\Core\Entity;
use App\Util\Common;
use DateTimeInterface;
/**
@@ -227,6 +228,11 @@ class Attachment extends Entity
}
}
public function getPath()
{
return Common::config('attachments', 'dir') . $this->getFilename();
}
public static function schemaDef(): array
{
return [