debug for prod

This commit is contained in:
Cyprian Beauvois 2019-07-26 16:41:04 +02:00
parent f7cffe894a
commit 2832a953b9
1 changed files with 4 additions and 1 deletions

View File

@ -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();
}