Exemplo n.º 1
0
 private function deriveAbsoluteUrl()
 {
     $this->absoluteUrl = clone $this->nonAbsoluteUrl;
     if (!$this->absoluteUrl->isAbsolute()) {
         $this->derivePath();
         $this->deriveHost();
         $this->deriveScheme();
         $this->deriveUser();
         $this->derivePass();
     }
 }
 private function deriveAbsoluteUrl()
 {
     $this->absoluteUrl = clone $this->nonAbsoluteUrl;
     if (!$this->absoluteUrl->isAbsolute()) {
         if ($this->absoluteUrl->isProtocolRelative()) {
             $this->deriveScheme();
         } else {
             $this->derivePath();
             $this->deriveHost();
             $this->derivePort();
             $this->deriveScheme();
             $this->deriveUser();
             $this->derivePass();
         }
     }
 }