private function generateHost(ParsedRoute $route, &$values) : string
    {
        $host = '';

        if (!empty($route->getRawHost())) {
            $host = $this->generateUrlPart($route->getRawHost(), $route->getHostRegex(), $route->getName(), $values);
            // Prefix the URL with the protocol
            $host = 'http' . ($route->isSecure() ? 's' : '') . '://' . $host;
        }

        return $host;
    }