/**
  * Replace the host in a URL with the configured domain.
  *
  * @param Url $url
  *   The URL to modify.
  */
 protected function injectCname($url)
 {
     if (strpos($url->getHost(), $this->config->getDomain()) === FALSE) {
         $url->setHost($this->config->getDomain());
     }
 }