Skip to content

[Routing] Remove simple quotes in config/routes/annotations.yaml #14528

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
Nov 12, 2020

Conversation

Yondz
Copy link

@Yondz Yondz commented Nov 10, 2020

I find it weird to have both quoted and un-quoted values for resource: key in this code block.
I went to an actual project to double check the content of config/routes/annotations.yaml provided by the recipe (https://github.com/symfony/recipes/blob/master/doctrine/annotations/1.0/config/routes/annotations.yaml) and found out that both resource: are unquoted.

Versions : 4.4, 5.0, 5.1, 5.2

Have a good day ;)

I find it weird to have both quoted and un-quoted values for `resource:` key in this code block.
I went to an actual project to double check the content of `config/routes/annotations.yaml` provided by the recipe (https://github.com/symfony/recipes/blob/master/doctrine/annotations/1.0/config/routes/annotations.yaml) and found out that both `resource:` are unquoted.

Versions : 4.4, 5.0, 5.1, 5.2

Have a good day ;)
@carsonbot carsonbot added this to the 4.4 milestone Nov 10, 2020
@Yondz Yondz changed the title Remove simple quotes in config/routes/annotations.yaml [Routing] Remove simple quotes in config/routes/annotations.yaml Nov 10, 2020
Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

Personally, I always quote Yaml strings that start with a non alfanumeric character (as some, like @ are reserved first characters in Yaml).

However, I agree with following the official recipes here! 👍

@OskarStark
Copy link
Contributor

OskarStark commented Nov 12, 2020

Thank you Greg ❗ and congrats on your first contribution to the Symfony documentation 🎉

@OskarStark OskarStark merged commit d1c2a1e into symfony:4.4 Nov 12, 2020
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