refactor: connector abstraction

This commit is contained in:
Vincent
2024-08-23 13:38:16 +02:00
parent 700e531e22
commit 2f841f0127
5 changed files with 20 additions and 7 deletions

View File

@@ -5,13 +5,13 @@ namespace App\Service\Connector;
use App\Entity\Domain;
use Symfony\Contracts\HttpClient\HttpClientInterface;
readonly class NamecheapConnector implements ConnectorInterface
class NamecheapConnector extends AbstractConnector
{
public const BASE_URL = 'https://api.namecheap.com/xml.response';
public const SANDBOX_BASE_URL = 'http://api.sandbox.namecheap.com/xml.response';
public function __construct(private array $authData, private HttpClientInterface $client)
public function __construct(private HttpClientInterface $client)
{
}