From 90d2ebddcc49c9ec3d14078bf3c94761af6de99c Mon Sep 17 00:00:00 2001 From: cbeauvoi Date: Mon, 22 Jul 2019 11:32:29 +0200 Subject: [PATCH] fixing obj to str --- BillingBundle/Service/BillingSrv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }