setPath(self::LIB_EXE_FETCH_PHP); } public static function createDetailUrl(): Url { return Url::createEmpty()->setPath(self::LIB_EXE_DETAIL_PHP); } public static function createComboStrapUrl(): Url { return Url::createEmpty() ->setScheme("https") ->setHost("combostrap.com"); } public static function createSupportUrl(): Url { return self::createComboStrapUrl() ->setPath("support"); } public static function createDokuUrl(): Url { return Url::createEmpty()->setPath(self::DOKU_PHP); } /** * */ public static function createBaseUrl(): Url { $url = Site::getBaseUrl(); try { return Url::createFromString($url); } catch (ExceptionBadArgument|ExceptionBadSyntax $e) { LogUtility::error("The base Url ($url) is not a valid url. Empty URL returned. Error: {$e->getMessage()}", "urlendpoint",$e); return Url::createEmpty(); } } public static function createTaskRunnerUrl(): Url { return Url::createEmpty()->setPath(self::LIB_EXE_RUNNER_PHP); } public static function createAjaxUrl(): Url { return Url::createEmpty()->setPath(self::LIB_EXE_AJAX_PHP); } public static function createCssUrl(): Url { return Url::createEmpty()->setPath(self::LIB_EXE_CSS_PHP); } }