diff --git a/BillingBundle/Service/BillingSrv.php b/BillingBundle/Service/BillingSrv.php index 7fc4ff8..52055a1 100644 --- a/BillingBundle/Service/BillingSrv.php +++ b/BillingBundle/Service/BillingSrv.php @@ -13,7 +13,10 @@ class BillingSrv { $this->container = $container; - $this->url_prefix = $env == "dev" ? $this->container->getParameter('dev_ngrok_prefix') + $ngrok_prefix = $this->container->getParameter('dev_ngrok_prefix'); + + $this->url_prefix = $env == ("dev" && !empty($ngrok_prefix)) + ? $ngrok_prefix : $container->get('router')->getContext()->getBaseUrl(); }