optimize catalog semantic match sby tags

This commit is contained in:
team2
2026-02-28 16:10:47 +01:00
parent d3294464ea
commit 0d3f6e21d6
13 changed files with 329 additions and 151 deletions

View File

@@ -11,12 +11,12 @@ use App\Service\TagRebuildJobService;
use App\Tag\TagService;
use Doctrine\ORM\EntityManagerInterface;
final class TagAdminService
final readonly class TagAdminService
{
public function __construct(
private readonly EntityManagerInterface $em,
private readonly TagService $tagService,
private readonly TagRebuildJobService $jobs,
private EntityManagerInterface $em,
private TagService $tagService,
private TagRebuildJobService $jobs,
) {}
public function getIndexData(): array
@@ -31,9 +31,13 @@ final class TagAdminService
];
}
public function create(string $slug, string $label, ?string $description): void
{
$this->tagService->create($slug, $label, $description);
public function create(
string $slug,
string $label,
?string $description,
string $type = 'generic' // NEU
): void {
$this->tagService->create($slug, $label, $description, $type);
}
public function delete(string $id): void