mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
chore: update Exception type
This commit is contained in:
@@ -84,8 +84,7 @@
|
|||||||
"symfony/zulip-notifier": "7.1.*",
|
"symfony/zulip-notifier": "7.1.*",
|
||||||
"symfonycasts/verify-email-bundle": "*",
|
"symfonycasts/verify-email-bundle": "*",
|
||||||
"twig/extra-bundle": "^2.12|^3.0",
|
"twig/extra-bundle": "^2.12|^3.0",
|
||||||
"twig/twig": "^2.12|^3.0",
|
"twig/twig": "^2.12|^3.0"
|
||||||
"ext-http": "*"
|
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"allow-plugins": {
|
"allow-plugins": {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
namespace App\Config\Provider;
|
namespace App\Config\Provider;
|
||||||
|
|
||||||
use App\Entity\Domain;
|
use App\Entity\Domain;
|
||||||
use http\Exception\InvalidArgumentException;
|
|
||||||
use Psr\Cache\CacheItemInterface;
|
use Psr\Cache\CacheItemInterface;
|
||||||
use Symfony\Component\HttpClient\HttpOptions;
|
use Symfony\Component\HttpClient\HttpOptions;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
@@ -30,12 +29,12 @@ class GandiProvider extends AbstractProvider
|
|||||||
public function orderDomain(Domain $domain, bool $dryRun = false): void
|
public function orderDomain(Domain $domain, bool $dryRun = false): void
|
||||||
{
|
{
|
||||||
if (!$domain->getDeleted()) {
|
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();
|
$ldhName = $domain->getLdhName();
|
||||||
if (!$ldhName) {
|
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);
|
$authData = self::verifyAuthData($this->authData, $this->client);
|
||||||
|
|||||||
Reference in New Issue
Block a user