protected function getBaseUrl()
    {
        $baseUrl = $this->container->get('router')->getContext()->getBaseUrl();

        if ($baseUrl === '/') {
            return '';
        }

        return rtrim(str_replace('app_dev.php', '', $this->container->get('router')->getContext()->getBaseUrl()), '/').'/';
    }
protected function getBaseUrl()
    {
        $baseUrl = $this->container->get('router')->getContext()->getBaseUrl();

        if ($baseUrl === '/') {
            return '';
        }

        return rtrim(str_replace('app_dev.php', '', $this->container->get('router')->getContext()->getBaseUrl()), '/').'/';
    }
protected function getBaseUrl ( ) { $ baseUrl = $ this -> container -> get ( 'router' ) -> getContext ( ) -> getBaseUrl ( ) ; if ( $ baseUrl === '/' ) { return '' ; } return rtrim ( str_replace ( 'app_dev.php' , '' , $ this -> container -> get ( 'router' ) -> getContext ( ) -> getBaseUrl ( ) ) , '/' ) . '/' ; }
Returns the normalized base URL.

@return string
Returns the normalized base URL .