diff --git a/BillingBundle/Service/BillingSrv.php b/BillingBundle/Service/BillingSrv.php index c668c04..9b32e8e 100644 --- a/BillingBundle/Service/BillingSrv.php +++ b/BillingBundle/Service/BillingSrv.php @@ -13,7 +13,7 @@ class BillingSrv { $this->container = $container; - $this->url_prefix = $env->isDebug() ? $this->container->getParameter('dev_ngrok_prefix') + $this->url_prefix = $env == "dev" ? $this->container->getParameter('dev_ngrok_prefix') : $container->get('router')->getContext()->getBaseUrl(); }