-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add explanation about prefix decision #10109
Add explanation about prefix decision #10109
Conversation
I'm not sure I like this proposal 😕 for two reasons:
|
@javiereguiluz so you are in favor of #9886 ?
Some bundles define services for libs that are not even in their namespaces. Quoting @iltar 👍
Aren't most services defined in a bundle for consumption by other services in that bundle ? |
Yes ... and those are private ... and I don't care if you use FQCN IDs. or snake_case IDs. But for public services, why would they be different than standard Symfony services? |
I think you should, because then those appear when you use |
Yes. I keep forgetting about that. In the past things were easy: "public" = services you can use; "private" = don't use these services, they are for internal purposes. But now "public" and "private" are almost the same. I was thinking about "hidden" services. However, I still don't understand why we should treat bundles differently. They are part of your application. They are like your code ... except that you didn't write it. |
From @nicolas-grekas in #9886 :
I'm not 100% sure that "by doing so" means no auto{discovery,wiring,configuration} or just no auto{wiring,configuration}, but if it does, it's a good reason not to do that. Please clarify, @nicolas-grekas |
I mean |
f45cf7f
to
d67faac
Compare
See symfony#9886, I left out reasons related to overhead during compilation steps because that might be too technical.
d67faac
to
305879d
Compare
This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes #10109). Discussion ---------- Add explanation about prefix decision See #9886, I left out reasons related to overhead during compilation steps because that might be too technical. Commits ------- 305879d Add explanation about prefix decision
Thanks for this contribution and sorry for the delay merging it. We finally merged it. |
See #9886, I left out
reasons related to overhead during compilation steps because that might
be too technical.