Skip to content

[DI] deprecate Definition/Alias::setPrivate() #37373

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
Jun 22, 2020

Conversation

nicolas-grekas
Copy link
Member

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

Right now, there is a very subtle difference between setPublic() and setPrivate() that dates back to the FC/BC layer we created to turn services private by default.

We kept this difference to help third party bundles provide support for a wide range of versions of Symfony, but since 5.2 will be released at the same time as 3.4 will enter EOM, we should remove this behavior and deprecate setPrivate() to signal the change.

This is what this PR does.

@nicolas-grekas nicolas-grekas added this to the next milestone Jun 21, 2020
@nicolas-grekas nicolas-grekas force-pushed the di-deprec-set-private branch from b4cde5d to 3623d9e Compare June 22, 2020 07:22
@nicolas-grekas nicolas-grekas requested a review from xabbuh as a code owner June 22, 2020 07:22
@nicolas-grekas nicolas-grekas force-pushed the di-deprec-set-private branch from 3623d9e to 95f1e66 Compare June 22, 2020 07:35
nicolas-grekas added a commit that referenced this pull request Jun 22, 2020
This PR was merged into the 3.4 branch.

Discussion
----------

Relax tests to unlock change on master

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

Required to make #37373 green.
Doesn't change any outcome.

Commits
-------

afe596e Relax tests to unlock change on master
@nicolas-grekas nicolas-grekas force-pushed the di-deprec-set-private branch from 95f1e66 to 1bea690 Compare June 22, 2020 08:13
@fabpot
Copy link
Member

fabpot commented Jun 22, 2020

Thank you @nicolas-grekas.

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