protected function doGetFileSyncUrl(FileSync $fileSync) { $path = parent::doGetFileSyncUrl($fileSync); $host = preg_replace("(https?://)", "", $this->getUrl()); $urlSuffix = str_replace('\\', '/', $path); return "http://" . $host . '/' . ltrim($urlSuffix, '/'); }
protected function doGetFileSyncUrl(FileSync $fileSync) { $url = parent::doGetFileSyncUrl($fileSync); if ($this->getPrefix()) { if (strpos($url, '/') !== 0) { $url = '/' . $url; } $url = $this->getPrefix() . $url; } $url = $this->formatByExtension($url, false); $url = str_replace($this->REDUNDANT_EXTENSIONS, '', $url); return $url; }