Skip to content

Use "closure-style" PHP configuration format in code examples #13965

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
Jul 15, 2020

Conversation

ocrampete16
Copy link
Contributor

I noticed that we still use the "old" way of defining configuration in PHP in some code examples even though the new format has been available for quite a few years now: https://symfony.com/blog/new-in-symfony-3-4-php-based-configuration-for-services-and-routes

Seeing two styles of writing configuration in PHP might be confusing for beginners, so I've updated the examples here to use the new format.

There's probably still a number of places where the older format is used - I'll be sure to submit more PRs as I encouter them :)

@javiereguiluz
Copy link
Member

Fantastic contribution! I love it!! Thanks a lot Marco.

@javiereguiluz javiereguiluz merged commit fe76c97 into symfony:4.4 Jul 15, 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.

3 participants