Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5994489

Browse filesBrowse files
committed
documented the $url parameter better
1 parent f676878 commit 5994489
Copy full SHA for 5994489

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎src/Symfony/Component/HttpFoundation/RedirectResponse.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/RedirectResponse.php
+2-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.