Skip to content
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 HttpFoundation note after recent changes in routing component #5678

Closed

Conversation

senkal
Copy link
Contributor

@senkal senkal commented Sep 8, 2015

Q A
Doc fix? yes
New docs? no
Applies to 2.3
Fixed tickets

Update HttpFoundation note to reflect changes in #5652.
We do not longer use $_SERVER['REQUEST_URI'] in examples so keeping the reference in note doesn't have much value.
I updated it to make it more generic and reflect current examples.

@senkal senkal changed the title Update HtppFoundation note after recent changes in routing component Update HttpFoundation note after recent changes in routing component Sep 8, 2015
Be careful when using ``$_SERVER['REQUEST_URI']``, as it may include
any query parameters on the URL, which will cause problems with route
matching. An easy way to solve this is to use the HttpFoundation component
Althought to populate parameters for :class: Symfony\\Component\\Routing\\RequestContext
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new phrase is not easy to read. What about rewording it as follows?

The :class:`Symfony\\Component\\Routing\\RequestContext` parameters can be populated
with the values stored in ``$_SERVER``, but it's easier to use the HttpFoundation
component as explained :ref:`below <components-routing-http-foundation>`.

@senkal
Copy link
Contributor Author

senkal commented Sep 11, 2015

@javiereguiluz good point. I updated the note.

@xabbuh
Copy link
Member

xabbuh commented Sep 23, 2015

👍 I like this!

@xabbuh
Copy link
Member

xabbuh commented Oct 4, 2015

Thank you @senkal.

xabbuh added a commit that referenced this pull request Oct 4, 2015
…g component (senkal)

This PR was squashed before being merged into the 2.3 branch (closes #5678).

Discussion
----------

Update HttpFoundation note after recent changes in routing component

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |

Update HttpFoundation note to reflect changes in #5652.
We do not longer use `$_SERVER['REQUEST_URI']` in examples so keeping the reference in note doesn't have much value.
I updated it to make it more generic and reflect current examples.

Commits
-------

36234f2 Update HttpFoundation note after recent changes in routing component
@xabbuh xabbuh closed this Oct 4, 2015
@senkal senkal deleted the update-http-foundation-note-routing-component branch October 4, 2015 13:02
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