Skip to content

Commit

Permalink
refactor: fix merge mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceh121 committed Sep 18, 2024
1 parent b7774fe commit bbd56d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/Config/ConnectorProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@

namespace App\Config;

use App\Config\Provider\GandiProvider;
use App\Config\Provider\OvhProvider;
use App\Service\Connector\GandiProvider;
use App\Service\Connector\NamecheapConnector;
use App\Service\Connector\OvhProvider;

enum ConnectorProvider: string
{
case OVH = 'ovh';
case GANDI = 'gandi';
case NAMECHEAP = 'namecheap';

public function getConnectorProvider(): string
{
return match ($this) {
ConnectorProvider::OVH => OvhProvider::class,
ConnectorProvider::GANDI => GandiProvider::class
ConnectorProvider::GANDI => GandiProvider::class,
ConnectorProvider::NAMECHEAP => NamecheapConnector::class,
};
}
}
4 changes: 2 additions & 2 deletions src/MessageHandler/OrderDomainHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
use App\Service\StatService;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
use Symfony\Component\Mailer\MailerInterface;
Expand All @@ -33,8 +35,6 @@ public function __construct(
private WatchListRepository $watchListRepository,
private DomainRepository $domainRepository,
private KernelInterface $kernel,
private HttpClientInterface $client,
private CacheItemPoolInterface $cacheItemPool,
private MailerInterface $mailer,
private LoggerInterface $logger,
private StatService $statService,
Expand Down
1 change: 0 additions & 1 deletion src/Service/RDAPService.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ public function registerDomain(string $fqdn): Domain

/** @var ?Domain $domain */
$domain = $this->domainRepository->findOneBy(['ldhName' => $idnDomain]);
return $domain;

$rdapServerUrl = $rdapServer->getUrl();

Expand Down

0 comments on commit bbd56d4

Please sign in to comment.