Skip to content

Allow to use all tags with private services #18116

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

Closed
wants to merge 2 commits into from

Conversation

GuilhemN
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #18101
License MIT

This PR allows to register private event listeners/subscribers, private form extensions and private fragment renderers.

@sstok
Copy link
Contributor

sstok commented Mar 12, 2016

👎 This looks a really weird hack for something that can be resolved easily.

@GuilhemN
Copy link
Contributor Author

@sstok The reason of this PR is that it looks strange to me to force users to have public services for an internal reason that might change in the future.
Maybe a better solution would be to make the services public instead of creating aliases.

@sstok
Copy link
Contributor

sstok commented Mar 12, 2016

Making them public would indeed be a better solution 👍

@GuilhemN
Copy link
Contributor Author

@sstok updated

@sstok
Copy link
Contributor

sstok commented Mar 12, 2016

Status: Works for me

The concept that is :) the tests seem to be broken.

@GuilhemN
Copy link
Contributor Author

@sstok I forgot some changes, the tests are fixed now.

Edit: The build fail on Appveyor is unrelated and seems to happen randomly.

@nicolas-grekas
Copy link
Member

I don't get this PR: if one did set a service as private, what a surprise that it becomes public automatically just because it's used somewhere, don't you think?

@stof
Copy link
Member

stof commented Mar 15, 2016

I'm also -1 on this, for the reason given by @nicolas-grekas

@javiereguiluz
Copy link
Member

I'm closing it because two core members voted against it and provided compelling reasons, so we cannot merge it.

@Ener-Getick thanks anyway for submitting this contribution and hopefully next time we'll merge it.

@GuilhemN
Copy link
Contributor Author

@nicolas-grekas @stof marking a service as private means that it may not be accessible by the Container::get() method but there is no certitude so for me this attribute is mainly here to tell the developer "hey, you have to inject me, you should not fetch me from the container".
So for me an user wants his services to be marked as private in his configuration files but it doesn't matter how it is treated internally.

@jvasseur
Copy link
Contributor

@stof
Copy link
Member

stof commented Mar 16, 2016

@jvasseur and IMO, this is a mistake.

@GuilhemN GuilhemN deleted the TAGS branch March 16, 2016 16:28
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.

7 participants