src/Controller/XmlController.php
private function getDomainName(Request $request)
    {
        $domain = $this->container->getParameter('networking_init_cms.xml_sitemap.sitemap_url');
        if ($domain == '') {
            //domain is not set in config.yml
            $domain = $request->getScheme().'://'.$request->getHost();
        }

        return $domain;
    }
private function getDomainName(Request $request)
    {
        $domain = $this->container->getParameter('networking_init_cms.xml_sitemap.sitemap_url');
        if ($domain == '') {
            //domain is not set in config.yml
            $domain = $request->getScheme().'://'.$request->getHost();
        }

        return $domain;
    }
private function getDomainName ( Request $ request ) { $ domain = $ this -> container -> getParameter ( 'networking_init_cms.xml_sitemap.sitemap_url' ) ; if ( $ domain == '' ) { //domain is not set in config.yml $ domain = $ request -> getScheme ( ) . '://' . $ request -> getHost ( ) ; } return $ domain ; }
check config for domain name, otherwise returns scheme & host.
check config for domain name otherwise returns scheme & host .