Skip to content

[DependencyInjection] [AliasDeprecatedPublicServicesPass] Noop when the service is private #40872

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
Apr 20, 2021

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? 5.2
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

If the service is already private, I think we can just ignore the tag and do nothing.

Moreover, when we deprecate a public service, if an user already sets its definition to private, it will be transparent instead of throwing.

@carsonbot carsonbot added this to the 5.2 milestone Apr 19, 2021
@carsonbot carsonbot changed the title [DependencyInjection][AliasDeprecatedPublicServicesPass] Noop when the service is public [DependencyInjection] [AliasDeprecatedPublicServicesPass] Noop when the service is public Apr 19, 2021
@fancyweb fancyweb changed the title [DependencyInjection] [AliasDeprecatedPublicServicesPass] Noop when the service is public [DependencyInjection] [AliasDeprecatedPublicServicesPass] Noop when the service is private Apr 19, 2021
@fabpot
Copy link
Member

fabpot commented Apr 20, 2021

Thank you @fancyweb.

@fabpot fabpot merged commit d4844ef into symfony:5.2 Apr 20, 2021
@fancyweb fancyweb deleted the di/deprecate-public-allow-public branch April 20, 2021 07:10
This was referenced May 1, 2021
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.

5 participants