Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Remove direct dependencies on doctrine/common #582

Closed

Conversation

MaxandreOgeret
Copy link

@MaxandreOgeret
Copy link
Author

MaxandreOgeret commented Jul 27, 2018

I guess
"doctrine/collections"
"doctrine/event-manager"
"doctrine/persistence":
are only compatible with php version >= 7.1
What do you think?

@nicolas-grekas
Copy link
Collaborator

Yep, this forces PHP7.1 or higher. We'll have to bump the major version here to do this change.
The Travis matrix needs to be updated to make tests pass of course.

@MaxandreOgeret
Copy link
Author

Ok so my work here is done ? :)
Thanks for your help

@nicolas-grekas
Copy link
Collaborator

If you can update the Travis matrix, that's still todo :)

Copy link
Collaborator

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(requires a major version bump, isn't it? and maybe waiting for Doctrine ORM 2.7 to be tagged?)

@MaxandreOgeret
Copy link
Author

I guess, because it forces PHP7.1.
doctrine/common#826
I think common will be removed in doctrine 3.0

@Tobion
Copy link
Collaborator

Tobion commented Aug 20, 2018

Upping the php requirement does not require a new major version as it does not break bc.

@nicolas-grekas
Copy link
Collaborator

It breaks the continuous migration path by forcing ppl to change two pieces of the infra at the same time (version of PHP + version of the package.)

@Tobion
Copy link
Collaborator

Tobion commented Aug 20, 2018

They can update the php version without changing the SensioFrameworkExtraBundle. But this topic has been discussed alot of times. https://semver.org/#what-should-i-do-if-i-update-my-own-dependencies-without-changing-the-public-api

@@ -15,7 +15,9 @@
"symfony/framework-bundle": "^3.4|^4.0",
"symfony/dependency-injection": "^3.3|^4.0",
"symfony/http-kernel": "^3.3|^4.0",
"doctrine/common": "^2.2"
"doctrine/collections": "~1.0",
"doctrine/event-manager": "~1.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this bundle really use the Doctrine events ? AFAIK, it uses doctrine/annotations (missing here) and doctrine/persistence

"doctrine/common": "^2.2"
"doctrine/collections": "~1.0",
"doctrine/event-manager": "~1.0",
"doctrine/persistence": "~1.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use the caret operator for consistency.

@nicolas-grekas
Copy link
Collaborator

@Tobion I'm not talking about semver but about the policy we have in Symfony. We have a pretty good track record over years of bumping PHP on major versions only. I don't see a reason to stop it now here.

@Tobion
Copy link
Collaborator

Tobion commented Aug 21, 2018

I didn't know of this policy. At least in https://github.com/symfony/monolog-bundle/releases/tag/v3.3.0 it was violated then.

@stof
Copy link
Contributor

stof commented Aug 22, 2018

this one dropped support for EOLed PHP versions only. PHP 5.6 is not EOL yet

@simensen
Copy link

Does this mean we can't merge this until EOL of PHP 5.6? Looks like that is at the end of the month? I'm getting warnings related to Doctrine's class loader in my message consumer and they are annoying since I cannot do anything about them. :(

Is there anything else that needs to be done on this PR to keep it from being merged on January 1st? :) Happy to see if I can pitch in on that if there is more to do.

@stof
Copy link
Contributor

stof commented Dec 12, 2018

this bundle is not using Doctrine ClassLoader. So this PR won't change that fact.

@fabpot
Copy link
Member

fabpot commented Apr 8, 2019

I've finished the work in #612

@fabpot fabpot closed this Apr 8, 2019
fabpot added a commit that referenced this pull request Apr 8, 2019
This PR was merged into the 5.3.x-dev branch.

Discussion
----------

Bump deps, remove doctrine/common

closes #582, closes #580

Commits
-------

049d799 bumped deps, removed doctrine/common
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
6 participants