mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-06 00:14:36 +02:00
Use imports instead of FQNs
This commit is contained in:
parent
f63b6d7207
commit
5629215ce4
179 changed files with 792 additions and 597 deletions
|
@ -22,6 +22,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\EntityListeners;
|
||||
|
||||
use App\Entity\Attachments\AttachmentContainingDBElement;
|
||||
use App\Entity\Attachments\Attachment;
|
||||
use App\Services\Attachments\AttachmentManager;
|
||||
use App\Services\Attachments\AttachmentPathResolver;
|
||||
|
@ -80,7 +81,7 @@ class AttachmentDeleteListener
|
|||
//Ensure that the attachment that will be deleted, is not used as preview picture anymore...
|
||||
$attachment_holder = $attachment->getElement();
|
||||
|
||||
if (!$attachment_holder instanceof \App\Entity\Attachments\AttachmentContainingDBElement) {
|
||||
if (!$attachment_holder instanceof AttachmentContainingDBElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue