feat: some stuff

This commit is contained in:
Vincent
2024-08-26 14:02:12 +02:00
parent 3e3ea66848
commit 7861eaf5db
8 changed files with 30 additions and 8 deletions

View File

@@ -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());
}

View File

@@ -46,7 +46,7 @@ class JWTAuthenticator implements AuthenticationSuccessHandlerInterface
time() + 7200, // expiration
'/',
null,
true,
false,
true,
false,
'strict'

View File

@@ -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;
}
}

View File

@@ -152,6 +152,7 @@ readonly class RDAPService
/** @var ?Domain $domain */
$domain = $this->domainRepository->findOneBy(['ldhName' => $idnDomain]);
return $domain;
$rdapServerUrl = $rdapServer->getUrl();