-
Notifications
You must be signed in to change notification settings - Fork 181
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
Doctrine\Common\ClassLoader is deprecated. #434
Comments
Thanks for your report. Did you see this deprecation with the |
I can see it using doctrine/common 2.9.x-dev |
I removed the direct dependency in #440 and 3 of the dependencies of this bundle still require
So, we'll see the deprecation message until these 3 packages remove We can do the same thing as in symfony/symfony#27609 and require the necessary doctrine components and drop |
As noted here symfony/symfony#27609 (comment), the parameter |
This is not caused by LiipFunctionalTestBundle and should get fixed automatically when doctrine/orm 2.6.3 is released, see doctrine/orm#7307 |
Reopening as the dependency on doctrine/common should be split like in symfony/symfony#27609 |
I've did a quick check using Composer require checker. This is the result, grepping for
It seems to me that any used symbol is due to fixture-related stuff (
The problematic thing is the fact that common is still required indirectly by our
How should we proceed? IMHO maybe we could promote PHPUnit to a non-dev dependency (it surely is, since we extend the base test case), add a group to all tests that work around fixtures and exclude them in a single job. |
I did a small tryout of running tests without additional dev dependencies and that's really ugly.. The fixtures requires all the bundles, everything is an implicit / optional dependency... Argh! |
On one hand, we could add a test suite and ensure that some tests work without Doctrine. For example, for projets which use other database bundle like On the other hand, I'm pretty sure that almost all the projects that use this bundle use Doctrine for communicating with their database and so we may assume that Doctrine is installed. (sorry I misclicked and closed this issue) |
Preconditions
The future of Common 3.0 doctrine/common#826
Steps to reproduce
I think the error comes from the fact that you require doctrine/common in your composer.json
Expected result
Should not use doctrine/common
Actual result
In our logs: Doctrine\Common\ClassLoader is deprecated
The text was updated successfully, but these errors were encountered: