-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Add framework config for DBAL cache adapter #44065
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
Conversation
src/Symfony/Bridge/Doctrine/SchemaListener/PdoCacheAdapterDoctrineSchemaSubscriber.php
Show resolved
Hide resolved
4f10486
to
d7ad8ab
Compare
src/Symfony/Bridge/Doctrine/SchemaListener/DoctrineDbalCacheAdapterSchemaSubscriber.php
Outdated
Show resolved
Hide resolved
55d257f
to
1ad7865
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please do two more things?
- remove
final
on DoctrineDbalAdapter, it's not needed - remove the class_exists check in cache.php and move it to the extension
src/Symfony/Bridge/Doctrine/SchemaListener/DoctrineDbalCacheAdapterSchemaSubscriber.php
Outdated
Show resolved
Hide resolved
👍🏻 to simplify. That would remove the interface that has been added for mocking.
Do you mean the existing one?
|
yes, please remove the interface |
btw, the deprecation message should be updated also: |
5e75678
to
108184b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to update the LockRegistry to fix tests and GTM!
108184b
to
16399c3
Compare
Thanks for the review. Ready! |
739ecbd
to
672545d
Compare
Thank you @GromNaN. |
The new cache adapter seems to be missing in the documentation. |
The framework configuration was missing from #43362.
Additionnaly, the depreciation message on
PdoCacheAdapterDoctrineSchemaSubscriber
must be removed. This class needs to be used in 5.4 whenever aPdoAdapter
is used, because it could have a DBAL connection and we need to keep the deprecated behavior. A depreciation message is already triggered in thePdoAdapter
itself when it gets a DBAL connection.