feat: merging the domain refresh endpoint with the GET endpoint

This commit is contained in:
Maël Gangloff
2024-07-20 09:45:13 +02:00
parent 00a58b2447
commit 0b4f3fb2b3
3 changed files with 22 additions and 14 deletions

View File

@@ -67,7 +67,7 @@ readonly class RDAPService
/**
* @throws Exception
*/
private function registerDomain(string $fqdn): void
public function registerDomain(string $fqdn): Domain
{
$idnDomain = idn_to_ascii($fqdn);
$tld = $this->getTld($idnDomain);
@@ -178,6 +178,7 @@ readonly class RDAPService
$this->em->persist($domain);
$this->em->flush();
return $domain;
}