lib: Document Response::redirectAndExit()

refs #9660
This commit is contained in:
Eric Lippmann 2015-07-29 14:22:45 +02:00
parent a31c799043
commit 91720810cc
1 changed files with 6 additions and 1 deletions

View File

@ -28,10 +28,15 @@ class Response extends Zend_Controller_Response_Http
return $this->request; return $this->request;
} }
/**
* Redirect to the given URL and exit immediately
*
* @param string|Url $url
*/
public function redirectAndExit($url) public function redirectAndExit($url)
{ {
if (! $url instanceof Url) { if (! $url instanceof Url) {
$url = Url::fromPath($url); $url = Url::fromPath((string) $url);
} }
$url->getParams()->setSeparator('&'); $url->getParams()->setSeparator('&');