8000 documented the $url parameter better · symfony/symfony@5994489 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5994489

Browse files
committed
documented the $url parameter better
1 parent f676878 commit 5994489

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/HttpFoundation/RedirectResponse.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class RedirectResponse extends Response
2323
/**
2424
* Creates a redirect response so that it conforms to the rules defined for a redirect status code.
2525
*
26-
* @param string $url The URL to redirect to
26+
* @param string $url The URL to redirect to. The URL should be a full URL, with schema etc.,
27+
* but practically every browser redirects on paths only as well
2728
* @param int $status The status code (302 by default)
2829
* @param array $headers The headers (Location is always set to the given URL)
2930
*

0 commit comments

Comments
 (0)
0