From 3553562f628c1bcaeabbf080ff03fdb319975206 Mon Sep 17 00:00:00 2001 From: cbeauvoi Date: Fri, 26 Jul 2019 16:55:49 +0200 Subject: [PATCH] add parameter to control prefix --- BillingBundle/Service/BillingSrv.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BillingBundle/Service/BillingSrv.php b/BillingBundle/Service/BillingSrv.php index 4c5593a..c44dfa1 100644 --- a/BillingBundle/Service/BillingSrv.php +++ b/BillingBundle/Service/BillingSrv.php @@ -15,9 +15,9 @@ class BillingSrv $ngrok_prefix = $this->container->getParameter('dev_ngrok_prefix'); - $this->url_prefix = ($env == "dev" && !empty($ngrok_prefix)) - ? $ngrok_prefix - : $container->get('router')->getContext()->getBaseUrl(); + $base_url = $this->container->getParameter('prod_prefix'); + + $this->url_prefix = ($env == "dev" && !empty($ngrok_prefix)) ? $ngrok_prefix : $base_url; } private function setApiKey()