🐛 fix(PaymentClient): Corrige la condition d'environnement pour l'URL en production.

This commit is contained in:
Serreau Jovann
2026-01-11 18:02:52 +01:00
parent 7213dd0aba
commit a3cea3c821

View File

@@ -15,7 +15,7 @@ class PaymentClient
public function __construct(private readonly RequestStack $requestStack, private readonly UrlGeneratorInterface $urlGenerator, private readonly EntityManagerInterface $em) public function __construct(private readonly RequestStack $requestStack, private readonly UrlGeneratorInterface $urlGenerator, private readonly EntityManagerInterface $em)
{ {
$this->url = ""; $this->url = "";
if($_ENV['APP_ENV'] == "prod"); if($_ENV['APP_ENV'] == "prod")
$this->url = $_ENV['PROD_URL']; $this->url = $_ENV['PROD_URL'];
else else
$this->url = $_ENV['DEV_URL']; $this->url = $_ENV['DEV_URL'];