From 271e642ac78a7a22ffe77ab39190401621e5f82d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Thu, 18 Jul 2024 15:47:33 +0200 Subject: [PATCH] fix: Symfony interprets the TLD of the domain name as a return type --- src/Entity/Domain.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Entity/Domain.php b/src/Entity/Domain.php index aee2987..3cb411f 100644 --- a/src/Entity/Domain.php +++ b/src/Entity/Domain.php @@ -28,6 +28,7 @@ use Symfony\Component\Serializer\Attribute\Groups; ] ), new Get( + uriTemplate: '/domains/{ldhName}', # Do not delete this line, otherwise Symfony interprets the TLD of the domain name as a return type normalizationContext: [ 'groups' => [ 'domain:item',