-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
Deprecate configuring caches through DoctrineCacheBundle #981
Deprecate configuring caches through DoctrineCacheBundle #981
Conversation
8dd300b
to
0c2bd37
Compare
Coverage tests are broken because of a deprecation:
Can't figure out what's using it though, especially since this doesn't happen in any of the other builds. Could this be a problem because of the code coverage whitelist? Edit: also can't reproduce the failure locally 🤷♂️ |
0c2bd37
to
4615b7f
Compare
The service of the event-subscriber is called depending on some configuration. It seems to depend on |
a80fd3e
to
4615b7f
Compare
Turns out the reason for the failure was that the coverage tests installed symfony/messenger in version 4.2. This also locks the FrameworkBundle to 4.2, which still uses the now deprecated class. Locally, I had symfony/messenger 4.3 installed, which doesn't cause the issue. I've fixed .travis.yml in #983 which will be merged up soon. |
a80fd3e
to
94552bb
Compare
94552bb
to
8c6874c
Compare
the rule for marked a test as |
2663cd0
to
389289a
Compare
@stof you're right - I didn't think of those. I've updated the test and included some legacy tests to test existing functionality. There may be a few more changes necessary once we drop old stuff, but that's alright. |
fd040a3
to
e10438f
Compare
e10438f
to
0dc30c8
Compare
With this PR, we are deprecating configuring cache drivers for ORM through DoctrineCacheBundle, as the bundle is deprecated (see doctrine/DoctrineCacheBundle#156). Instead of assuming
array
as default, the bundle now uses an appropriate cache pool (app
orsystem
depending on the cache in question) if no explicit configuration was given. This avoids deprecation notices for people that did not add any cache configuration.Caches should either be configured by passing a symfony/cache pool or service ID. The latter allows using
doctrine/cache
classes, but without the comfort of configuring the caches through bundle config. The implicit requirement on doctrine/cache-bundle will be removed in DoctrineBundle 2.0.