mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Renamed the base DBElement classes to AbstractDBElement to comply with symfony recommendations.
This commit is contained in:
parent
da72f5b3ec
commit
594c694ee0
62 changed files with 203 additions and 203 deletions
|
@ -24,8 +24,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\DataTables\Column;
|
||||
|
||||
use App\Entity\Base\DBElement;
|
||||
use App\Entity\Base\NamedDBElement;
|
||||
use App\Entity\Base\AbstractDBElement;
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Entity\LogSystem\AbstractLogEntry;
|
||||
use App\Services\ElementTypeNameGenerator;
|
||||
use App\Services\EntityURLGenerator;
|
||||
|
@ -70,7 +70,7 @@ class LogEntryTargetColumn extends AbstractColumn
|
|||
$target = $this->entryRepository->getTargetElement($context);
|
||||
|
||||
//The element is existing
|
||||
if ($target instanceof NamedDBElement) {
|
||||
if ($target instanceof AbstractNamedDBElement) {
|
||||
return sprintf(
|
||||
'<a href="%s">%s</a>',
|
||||
$this->entityURLGenerator->infoURL($target),
|
||||
|
@ -79,7 +79,7 @@ class LogEntryTargetColumn extends AbstractColumn
|
|||
}
|
||||
|
||||
//Target does not have a name
|
||||
if ($target instanceof DBElement) {
|
||||
if ($target instanceof AbstractDBElement) {
|
||||
return sprintf(
|
||||
'<i>%s</i>: %s',
|
||||
$this->elementTypeNameGenerator->getLocalizedTypeLabel($target),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue