diff --git a/composer.json b/composer.json index d83be67..d65d778 100644 --- a/composer.json +++ b/composer.json @@ -84,8 +84,7 @@ "symfony/zulip-notifier": "7.1.*", "symfonycasts/verify-email-bundle": "*", "twig/extra-bundle": "^2.12|^3.0", - "twig/twig": "^2.12|^3.0", - "ext-http": "*" + "twig/twig": "^2.12|^3.0" }, "config": { "allow-plugins": { diff --git a/src/Config/Provider/GandiProvider.php b/src/Config/Provider/GandiProvider.php index 9385905..0c1226c 100644 --- a/src/Config/Provider/GandiProvider.php +++ b/src/Config/Provider/GandiProvider.php @@ -3,7 +3,6 @@ namespace App\Config\Provider; use App\Entity\Domain; -use http\Exception\InvalidArgumentException; use Psr\Cache\CacheItemInterface; use Symfony\Component\HttpClient\HttpOptions; use Symfony\Component\HttpFoundation\Response; @@ -30,12 +29,12 @@ class GandiProvider extends AbstractProvider public function orderDomain(Domain $domain, bool $dryRun = false): void { if (!$domain->getDeleted()) { - throw new InvalidArgumentException('The domain name still appears in the WHOIS database'); + throw new \Exception('The domain name still appears in the WHOIS database'); } $ldhName = $domain->getLdhName(); if (!$ldhName) { - throw new InvalidArgumentException('Domain name cannot be null'); + throw new \Exception('Domain name cannot be null'); } $authData = self::verifyAuthData($this->authData, $this->client);