Skip to content

Update routing.rst #4760

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
Jan 8, 2015
Merged

Update routing.rst #4760

merged 1 commit into from
Jan 8, 2015

Conversation

ifdattic
Copy link
Contributor

@ifdattic ifdattic commented Jan 4, 2015

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

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |
@wouterj
Copy link
Member

wouterj commented Jan 8, 2015

I like it! 👍

$this->get('router')->generate('blog', array('page' => 2, 'category' => 'Symfony'));
$this->get('router')->generate('blog', array(
'page' => 2,
'category' => 'Symfony'
Copy link
Member

Choose a reason for hiding this comment

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

A quick question: do we add a trailing comma for the last array element in the docs ... or do we only add it in code?

Copy link
Member

Choose a reason for hiding this comment

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

Usually we follow this rule in the docs too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Crap, missed the comma, losing my sharpness I guess :D

Yea, usually docs have the trailing comma and as contribution docs has a section about having trailing comma, in my opinion it's a good idea to follow that rule in docs also.

@wouterj wouterj merged commit ddf0bc9 into symfony:2.3 Jan 8, 2015
wouterj added a commit that referenced this pull request Jan 8, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

Update routing.rst

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

Commits
-------

ddf0bc9 Update routing.rst
@ifdattic ifdattic deleted the patch-2 branch January 8, 2015 13:17
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.

4 participants