feat: only a compatible connector can be linked to a Watchlist

This commit is contained in:
Maël Gangloff
2024-08-19 16:34:08 +02:00
parent c504902724
commit 985271af2d
6 changed files with 166 additions and 44 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Config\Connector;
use App\Entity\Domain;
use App\Entity\Tld;
use Symfony\Contracts\HttpClient\HttpClientInterface;
interface ConnectorInterface
@@ -12,4 +13,6 @@ interface ConnectorInterface
public function orderDomain(Domain $domain, bool $dryRun): void;
public static function verifyAuthData(array $authData, HttpClientInterface $client): array;
public function isSupported(Tld ...$tld): bool;
}