protected function getInternalDomains()
    {
        $internalDomains = [];

        $routes = $this->grabService('router')->getRouteCollection();
        /* @var \Symfony\Component\Routing\Route $route */
        foreach ($routes as $route) {
            if (!is_null($route->getHost())) {
                $compiled = $route->compile();
                if (!is_null($compiled->getHostRegex())) {
                    $internalDomains[] = $compiled->getHostRegex();
                }
            }
        }

        return array_unique($internalDomains);
    }
protected function getInternalDomains()
    {
        $internalDomains = [];

        $routes = $this->grabService('router')->getRouteCollection();
        /* @var \Symfony\Component\Routing\Route $route */
        foreach ($routes as $route) {
            if (!is_null($route->getHost())) {
                $compiled = $route->compile();
                if (!is_null($compiled->getHostRegex())) {
                    $internalDomains[] = $compiled->getHostRegex();
                }
            }
        }

        return array_unique($internalDomains);
    }
protected function getInternalDomains ( ) { $ internalDomains = [ ] ; $ routes = $ this -> grabService ( 'router' ) -> getRouteCollection ( ) ; /* @var \Symfony\Component\Routing\Route $route */ foreach ( $ routes as $ route ) { if ( ! is_null ( $ route -> getHost ( ) ) ) { $ compiled = $ route -> compile ( ) ; if ( ! is_null ( $ compiled -> getHostRegex ( ) ) ) { $ internalDomains [ ] = $ compiled -> getHostRegex ( ) ; } } } return array_unique ( $ internalDomains ) ; }
Returns a list of recognized domain names.

@return array
Returns a list of recognized domain names .