fix: convertToIdn static function

This commit is contained in:
Maël Gangloff
2025-05-21 13:14:38 +02:00
parent 1bcebff59d
commit 38eac13b7a
4 changed files with 7 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ use ApiPlatform\Metadata\Get;
use ApiPlatform\Metadata\GetCollection;
use App\Config\TldType;
use App\Repository\TldRepository;
use App\Service\RDAPService;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
@@ -119,7 +120,7 @@ class Tld
public function setTld(string $tld): static
{
$this->tld = strtolower($tld);
$this->tld = RDAPService::convertToIdn($tld);
return $this;
}