mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: some stuff
This commit is contained in:
@@ -73,9 +73,10 @@ final readonly class ProcessDomainTriggerHandler
|
||||
$connectorProvider->orderDomain($domain, $this->kernel->isDebug());
|
||||
|
||||
$this->sendEmailDomainOrdered($domain, $connector, $watchList->getUser());
|
||||
} catch (\Throwable) {
|
||||
$this->logger->warning('Unable to complete purchase. An error message is sent to user {username}.', [
|
||||
} catch (\Throwable $t) {
|
||||
$this->logger->error('Unable to complete purchase. An error message is sent to user {username}.', [
|
||||
'username' => $watchList->getUser()->getUserIdentifier(),
|
||||
'error' => $t,
|
||||
]);
|
||||
$this->sendEmailDomainOrderError($domain, $watchList->getUser());
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ class JWTAuthenticator implements AuthenticationSuccessHandlerInterface
|
||||
time() + 7200, // expiration
|
||||
'/',
|
||||
null,
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
'strict'
|
||||
|
||||
@@ -11,7 +11,7 @@ class NamecheapConnector extends AbstractConnector
|
||||
|
||||
public const SANDBOX_BASE_URL = 'http://api.sandbox.namecheap.com/xml.response';
|
||||
|
||||
public function __construct(private HttpClientInterface $client, private string $outgoingIp)
|
||||
public function __construct(private HttpClientInterface $client, private readonly string $outgoingIp)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ class NamecheapConnector extends AbstractConnector
|
||||
private static function mergePrefixKeys(string $prefix, array|object $src, array &$dest)
|
||||
{
|
||||
foreach ($src as $key => $value) {
|
||||
$dest[$prefix . $key] = $value;
|
||||
$dest[$prefix.$key] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,5 +72,6 @@ class NamecheapConnector extends AbstractConnector
|
||||
|
||||
public static function verifyAuthData(array $authData, HttpClientInterface $client): array
|
||||
{
|
||||
return $authData;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,6 +152,7 @@ readonly class RDAPService
|
||||
|
||||
/** @var ?Domain $domain */
|
||||
$domain = $this->domainRepository->findOneBy(['ldhName' => $idnDomain]);
|
||||
return $domain;
|
||||
|
||||
$rdapServerUrl = $rdapServer->getUrl();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user