fix: Uri 기본 사용 방법 변경

This commit is contained in:
Hide_D committed 2023-02-20 02:23:54 +09:00
1 parent c648e2df85
commit 273973f4b6
3 files changed
+10 -4

No files matched your search

+5 -2
View File
@@ -337,8 +337,11 @@ class WebUtil
return join("\n", $result);
}
public static function replaceDomain(string $origPath, string $newDomain): string{
$upath = Uri::createFromBaseUri($origPath, $newDomain);
public static function replaceDomain(string $origPath): string{
$upath = Uri::createFromBaseUri(
$origPath,
Uri::createFromServer($_SERVER)
);
return (string)$upath;
}
}