🐛 fix(PaymentClient): Corrige la condition d'environnement pour l'URL en production.
This commit is contained in:
@@ -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'];
|
||||||
|
|||||||
Reference in New Issue
Block a user