optimize catalog semantic match sby tags
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user