This commit is contained in:
2025-07-08 11:43:04 +08:00
parent f38942f4f3
commit 8623a036ed
2 changed files with 30 additions and 0 deletions
+10
View File
@@ -68,6 +68,16 @@ class Response implements ResponseInterface
return $this->__call__(__FUNCTION__, $content, $statusCode);
}
/**
* @param string $url
* @param array $params
* @param int $statusCode
* @return ResponseInterface
*/
public function redirectTo(string $url, array $params = [], int $statusCode = 302): ResponseInterface
{
return $this->__call__(__FUNCTION__, $url, $params, $statusCode);
}
/**
* @param array $content