documented the $url parameter better

This commit is contained in:
Fabien Potencier 2016-02-18 14:55:37 +01:00
parent f676878fe0
commit 59944896f2
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ class RedirectResponse extends Response
/**
* Creates a redirect response so that it conforms to the rules defined for a redirect status code.
*
* @param string $url The URL to redirect to
* @param string $url The URL to redirect to. The URL should be a full URL, with schema etc.,
* but practically every browser redirects on paths only as well
* @param int $status The status code (302 by default)
* @param array $headers The headers (Location is always set to the given URL)
*