-
-
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
[Bug] Run CacheSchemaSubscriberPass after CacheCollectorPass #1177
Conversation
It looks to me like your description contradicts itself:
If And by the way what's the actual issue from user's perspective? |
The actual problem is this:
Because the adapter is decorated, the original definition is replaced with the |
Please also update this test case
|
The `CacheCollectorPass` of the Cache component decorates the cache adapters with a `TracingAdapter` which breaks the expectation that the provided Adapter provided to the `CacheSchemaSubscriber` is a `PdoAdapter` with the `configureSchema` method. By running the `CacheSchemaSubscriberPass` after the `CacheCollectorPass` only the actual Adapters (not decorated one) are correctly provided.
Done 👍 |
Thanks @sstok I was just hit by this when updating to 2.1, hope it can be merged soon, I'm reverting back to 2.0.x meanwhile |
The
CacheCollectorPass
of the Cache component decorates the cache adapters witha
TracingAdapter
which breaks the expectation that the provided Adapter provided tothe
CacheSchemaSubscriber
is aPdoAdapter
with theconfigureSchema
method.By running the
CacheSchemaSubscriberPass
after theCacheCollectorPass
onlythe actual Adapters (not decorated one) are correctly provided.
Note: This bug only happens when debugging and the profiler is enabled.
/cc @weaverryan