Contao\CoreBundle\Routing\UrlGenerator::prepareDomain PHP Method

prepareDomain() private method

Forces the router to add the host if necessary.
private prepareDomain ( Symfony\Component\Routing\RequestContext $context, array &$parameters, integer &$referenceType )
$context Symfony\Component\Routing\RequestContext
$parameters array
$referenceType integer
    private function prepareDomain(RequestContext $context, array &$parameters, &$referenceType)
    {
        if (isset($parameters['_ssl'])) {
            $context->setScheme(true === $parameters['_ssl'] ? 'https' : 'http');
        }
        if (isset($parameters['_domain']) && '' !== $parameters['_domain']) {
            $this->addHostToContext($context, $parameters, $referenceType);
        }
        unset($parameters['_domain'], $parameters['_ssl']);
    }