Skip to content

Namespace fix #6687

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 5, 2016
Merged

Namespace fix #6687

merged 1 commit into from
Jul 5, 2016

Conversation

JhonnyL
Copy link
Contributor

@JhonnyL JhonnyL commented Jun 27, 2016

Makes the namespace consistent with other examples in the article.

@javiereguiluz
Copy link
Member

👍 in the book we should always use AppBundle (in the components doc it's a different story). Thanks @JhonnyL.

Status: reviewed

@wouterj
Copy link
Member

wouterj commented Jun 28, 2016

👎

This section is about placing file service configuration inside a bundle. This isn't usefull for the AppBundle at all, it's meant for bundles that have to be shared. This is why we used another bundle name here.

Thinking about this, I think we might would want to remove this section from the book chapter (it's document in the Bundles section of the cookbook already). We can then discuss the import statement by just creating a secondary file in app/config/ with some service definitions (e.g. /app/config/mailer_services.yml) and import this into app/config/services.yml.

If you agree, can you maybe make these changes?

Status: Needs Work

@JhonnyL
Copy link
Contributor Author

JhonnyL commented Jun 28, 2016

@wouterj Ok, so I should remove the section Importing Configuration via Container Extensions all together.

What about the changes in Using the Expression Language, those are valid right? Also, does it really add any value to use different service ids for those examples? app.mailer vs my_mailer

@wouterj
Copy link
Member

wouterj commented Jul 2, 2016

On second thought, let's first merge this PR as is and then remove/rewrite some parts of the book article to make it shorter: 👍

Also, does it really add any value to use different service ids for those examples? app.mailer vs my_mailer

No, it doesn't. I think we updated everything to the best practices on the 2.3 version, but we forgot to do it for the expression language stuff (which was added in a newer version). It would be great if you can also change the service ID name.

@wouterj
Copy link
Member

wouterj commented Jul 2, 2016

Status: reviewed

wouterj added a commit to wouterj/symfony-docs that referenced this pull request Jul 5, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

Namespace fix

Makes the namespace consistent with other examples in the article.

Commits
-------

d7bc2e4 Fix namespace
@wouterj wouterj merged commit d7bc2e4 into symfony:2.7 Jul 5, 2016
@wouterj
Copy link
Member

wouterj commented Jul 5, 2016

Thanks @JhonnyL! I've merged your PR and created a new PR removing part of the importing section: #6715

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