documented the $url parameter better
This commit is contained in:
parent
f676878fe0
commit
59944896f2
@ -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.
|
* 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 int $status The status code (302 by default)
|
||||||
* @param array $headers The headers (Location is always set to the given URL)
|
* @param array $headers The headers (Location is always set to the given URL)
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user