mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
refactor: fix merge mistakes
This commit is contained in:
@@ -2,19 +2,22 @@
|
|||||||
|
|
||||||
namespace App\Config;
|
namespace App\Config;
|
||||||
|
|
||||||
use App\Config\Provider\GandiProvider;
|
use App\Service\Connector\GandiProvider;
|
||||||
use App\Config\Provider\OvhProvider;
|
use App\Service\Connector\NamecheapConnector;
|
||||||
|
use App\Service\Connector\OvhProvider;
|
||||||
|
|
||||||
enum ConnectorProvider: string
|
enum ConnectorProvider: string
|
||||||
{
|
{
|
||||||
case OVH = 'ovh';
|
case OVH = 'ovh';
|
||||||
case GANDI = 'gandi';
|
case GANDI = 'gandi';
|
||||||
|
case NAMECHEAP = 'namecheap';
|
||||||
|
|
||||||
public function getConnectorProvider(): string
|
public function getConnectorProvider(): string
|
||||||
{
|
{
|
||||||
return match ($this) {
|
return match ($this) {
|
||||||
ConnectorProvider::OVH => OvhProvider::class,
|
ConnectorProvider::OVH => OvhProvider::class,
|
||||||
ConnectorProvider::GANDI => GandiProvider::class
|
ConnectorProvider::GANDI => GandiProvider::class,
|
||||||
|
ConnectorProvider::NAMECHEAP => NamecheapConnector::class,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ use App\Service\Connector\AbstractProvider;
|
|||||||
use App\Service\StatService;
|
use App\Service\StatService;
|
||||||
use Psr\Cache\CacheItemPoolInterface;
|
use Psr\Cache\CacheItemPoolInterface;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
||||||
|
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
use Symfony\Component\HttpKernel\KernelInterface;
|
use Symfony\Component\HttpKernel\KernelInterface;
|
||||||
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
|
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
|
||||||
use Symfony\Component\Mailer\MailerInterface;
|
use Symfony\Component\Mailer\MailerInterface;
|
||||||
@@ -33,8 +35,6 @@ final readonly class OrderDomainHandler
|
|||||||
private WatchListRepository $watchListRepository,
|
private WatchListRepository $watchListRepository,
|
||||||
private DomainRepository $domainRepository,
|
private DomainRepository $domainRepository,
|
||||||
private KernelInterface $kernel,
|
private KernelInterface $kernel,
|
||||||
private HttpClientInterface $client,
|
|
||||||
private CacheItemPoolInterface $cacheItemPool,
|
|
||||||
private MailerInterface $mailer,
|
private MailerInterface $mailer,
|
||||||
private LoggerInterface $logger,
|
private LoggerInterface $logger,
|
||||||
private StatService $statService,
|
private StatService $statService,
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ readonly class RDAPService
|
|||||||
|
|
||||||
/** @var ?Domain $domain */
|
/** @var ?Domain $domain */
|
||||||
$domain = $this->domainRepository->findOneBy(['ldhName' => $idnDomain]);
|
$domain = $this->domainRepository->findOneBy(['ldhName' => $idnDomain]);
|
||||||
return $domain;
|
|
||||||
|
|
||||||
$rdapServerUrl = $rdapServer->getUrl();
|
$rdapServerUrl = $rdapServer->getUrl();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user