Skip to content

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

Merged
merged 1 commit into from
Mar 20, 2023
Merged

Update forwarding.rst #18092

merged 1 commit into from
Mar 20, 2023

Conversation

94noni
Copy link
Contributor

@94noni 94noni commented Mar 20, 2023

some code clean, (and add comment to which file we are talking of)

@carsonbot carsonbot added this to the 5.4 milestone Mar 20, 2023
@@ -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
Copy link
Contributor

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

@@ -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
Copy link
Contributor

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

@94noni
Copy link
Contributor Author

94noni commented Mar 20, 2023

@OskarStark i've reverted adding the path, even if at first it was the main topic of the PR :)

@OskarStark
Copy link
Contributor

Thank you @94noni.

@OskarStark OskarStark merged commit 8764597 into symfony:5.4 Mar 20, 2023
@94noni 94noni deleted the patch-13 branch March 20, 2023 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants