Upgrade to 3.7.0

This commit is contained in:
Bastian Allgeier
2022-06-27 10:02:22 +02:00
parent 0751a6510d
commit 1c22148d7b
674 changed files with 5052 additions and 3082 deletions

17
kirby/src/Http/Response.php Normal file → Executable file
View File

@@ -200,6 +200,23 @@ class Response
return new static($props);
}
/**
* Redirects to the given Urls
* Urls can be relative or absolute.
* @since 3.7.0
*
* @param string $url
* @param int $code
* @return void
*
* @codeCoverageIgnore
*/
public static function go(string $url = '/', int $code = 302)
{
die(static::redirect($url, $code));
}
/**
* Getter for single headers
*