feat: EPP order domain

This commit is contained in:
Maël Gangloff
2025-02-22 13:36:10 +01:00
parent 7048d8d22b
commit bebd3f81e5
4 changed files with 92 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ use Psr\Cache\CacheItemInterface;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Cache\InvalidArgumentException;
class EppClientProvider extends AbstractProvider implements EppClientProviderInterface
class EppClientProvider extends AbstractProvider implements CheckDomainProviderInterface
{
private eppConnection $eppClient;
@@ -62,7 +62,9 @@ class EppClientProvider extends AbstractProvider implements EppClientProviderInt
$d->addContact(new eppContactHandle($contact, $type));
}
$this->eppClient->request(new eppCreateDomainRequest($d));
if (!$dryRun) {
$this->eppClient->request(new eppCreateDomainRequest($d));
}
$this->eppClient->logout();
$this->eppClient->disconnect();