[Attachment] Move Controller and Entities to a Component

There's no problem in having the templates in the core
This commit is contained in:
2021-12-02 15:12:31 +00:00
parent 37ef8cddfa
commit eeaad19754
22 changed files with 37 additions and 48 deletions

View File

@@ -25,7 +25,7 @@ namespace App\Core;
use App\Core\DB\DB;
use function App\Core\I18n\_m;
use App\Entity\Attachment;
use Component\Attachment\Entity\Attachment;
use App\Util\Common;
use App\Util\Exception\DuplicateFoundException;
use App\Util\Exception\FileNotAllowedException;
@@ -229,7 +229,7 @@ class GSFile
function () use ($id) {
return DB::dql(
'select at.filename, at.mimetype '
. 'from App\\Entity\\Attachment at '
. 'from Component\Attachment\Entity\Attachment at '
. 'where at.id = :id',
['id' => $id],
);