Skip to content
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

fix BC break for removed service alias #1202

Merged
merged 1 commit into from
Aug 25, 2020
Merged

Conversation

dmaicher
Copy link
Contributor

Fixes #1201

@NicoHaase
Copy link

Out of curiosity: is this a long-term fix, as in: we can expect that this service is kept longer, or will this be removed again in nearer future?

@dmaicher
Copy link
Contributor Author

Out of curiosity: is this a long-term fix, as in: we can expect that this service is kept longer, or will this be removed again in nearer future?

I think we should keep this alias as long as we support doctrine/persistence < 2.0. What do you think @ostrolucky ?

@nicolas-grekas
Copy link
Member

A quick release would be much appreciated, we're getting the same report on many repos.

@alcaeus alcaeus added this to the 2.1.2 milestone Aug 25, 2020
@alcaeus alcaeus added the Bug label Aug 25, 2020
@alcaeus alcaeus merged commit f515308 into doctrine:2.1.x Aug 25, 2020
@alcaeus
Copy link
Member

alcaeus commented Aug 25, 2020

Merged and released. Thanks @dmaicher.

@dmaicher dmaicher deleted the fix_1201 branch August 25, 2020 11:00
@NicoHaase
Copy link

Should this "just fix everything that broke" ? Im between a rock and a hard place at the moment and cannot resolve it.

What does that mean? Is there any specific problem you are facing?

@ostrolucky
Copy link
Member

I think we should keep this alias as long as we support doctrine/persistence < 2.0. What do you think @ostrolucky ?

Yep

@greg0ire
Copy link
Member

I guess we should deprecate one in favor of the other. Not sure under which conditions exactly the new service is available/usable. It seems to be defined all the time, so… no condition?

@ostrolucky
Copy link
Member

Users get deprecations when using common\persistence classes already, I don't think we need to do more there. They know they shoiuld not use them. In some future version of bundle that will drop support doctrine/common 1.x we will just also drop old aliases. By requiring doctrine/common 2.x we will guarantee nobody can use old classes anymore, hence also service aliases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants