Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Routing: add explanation for the "_fragment" parameter#6783

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

alexislefebvre
Copy link
Contributor

@alexislefebvrealexislefebvre commentedJul 29, 2016
edited
Loading

Add explanation about this PR:symfony/symfony#12979

Presented inhttp://symfony.com/blog/new-in-symfony-3-2-routing-improvements

I copy-pasted the start of the announcement as the explanation since I couldn't have found a better explanation. I hope that won't be a problem.

@xabbuh
Copy link
Member

This change looks good to me. But I think we should add aversionadded directive which explains that support for this parameter was introduced in 3.2.

@alexislefebvre
Copy link
ContributorAuthor

Thanks for the review@xabbuh, I addedversionadded.

@@ -475,6 +475,13 @@ that are special: each adds a unique piece of functionality inside your applicat
``_format``
Used to set the request format (:ref:`read more <routing-format-param>`).

``_fragment``

.. versionadded:: 3.2

Choose a reason for hiding this comment

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

I know it's a bit verbose, but in Symfony Docs theversionadded directive is used like this:

.. versionadded:: 3.2    The ``_fragment`` parameter was introduced in Symfony 3.2.

@javiereguiluz
Copy link
Member

👍

Status: reviewed

@@ -475,6 +475,13 @@ that are special: each adds a unique piece of functionality inside your applicat
``_format``
Used to set the request format (:ref:`read more <routing-format-param>`).

``_fragment``
Copy link
Member

Choose a reason for hiding this comment

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

IMO, this is the wrong place for it, as you won't use_fragment in route patterns.

It should rather be explained in a section nearGenerating URLs with Query Strings

@alexislefebvrealexislefebvreforce-pushed therouting-explain-fragment-parameter branch fromb2b0fdb to7314bdbCompareAugust 29, 2016 19:50
@alexislefebvrealexislefebvreforce-pushed therouting-explain-fragment-parameter branch from7314bdb to0791e48CompareAugust 29, 2016 19:53
@alexislefebvre
Copy link
ContributorAuthor

@javiereguiluz I updated theversionadded part. What do you think of the comment of stof? Should I add a new section nearGenerating URLs with Query Strings? Thanks.

wouterj added a commit that referenced this pull requestOct 6, 2016
@wouterj
Copy link
Member

Hi@alexislefebvre!

I've merged your pull request and fixed a syntax error in0a22dda. I think it's a nice idea to also document this in the generating section indeed. Not sure if I would add a new section or just add it to the main section.

Feel free to propose another PR doing this. For now, thanks a lot for documenting this nice feature!

alexislefebvre reacted with hooray emoji

@alexislefebvrealexislefebvre deleted the routing-explain-fragment-parameter branchOctober 6, 2016 16:05
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@alexislefebvre@xabbuh@javiereguiluz@wouterj@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp