-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Update forwarding.rst #18092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update forwarding.rst #18092
Conversation
controller/forwarding.rst
Outdated
@@ -13,8 +13,10 @@ Instead of redirecting the user's browser, this makes an "internal" sub-request | |||
and calls the defined controller. The ``forward()`` method returns the | |||
:class:`Symfony\\Component\\HttpFoundation\\Response` object that is returned | |||
from *that* controller:: | |||
|
|||
// src/Controller/OneController.php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for the path here
controller/forwarding.rst
Outdated
@@ -29,7 +31,9 @@ from *that* controller:: | |||
The array passed to the method becomes the arguments for the resulting controller. | |||
The target controller method might look something like this:: | |||
|
|||
public function fancy($name, $color) | |||
// src/Controller/OtherController.php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for the path here
@OskarStark i've reverted adding the path, even if at first it was the main topic of the PR :) |
Thank you @94noni. |
some code clean, (and add comment to which file we are talking of)