feat(catalog) : expose CategoryType as read-only ApiResource with default label ASC sort
Pull Request — Quality gate / Backend (PHP CS + PHPUnit) (pull_request) Successful in 1m14s
Pull Request — Quality gate / Frontend (lint + Vitest + build) (pull_request) Successful in 1m10s

This commit is contained in:
Matthieu
2026-05-28 09:30:08 +02:00
parent 38150bf5e6
commit 767bd4497a
@@ -29,6 +29,9 @@ use Symfony\Component\Serializer\Attribute\Groups;
new GetCollection(
security: "is_granted('catalog.categories.view')",
normalizationContext: ['groups' => ['category_type:read']],
// Tri par defaut requis par la spec M0 § 4.6 : ordre alphabetique
// stable pour alimenter le <MalioSelect> du formulaire Category.
order: ['label' => 'ASC'],
),
new Get(
security: "is_granted('catalog.categories.view')",