-
-
Notifications
You must be signed in to change notification settings - Fork 53
[AIBundle] Cache store configuration improved #293
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
47ab79e
to
387d719
Compare
546c2d9
to
2368215
Compare
3680a9e
to
987fd0a
Compare
001c006
to
d0d9815
Compare
220e3b6
to
45b6de4
Compare
src/store/src/CacheStore.php
Outdated
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.
Let's remove the CacheItemPoolInterface
then here completely 👍
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.
Hum nope, it's required for the static analysis, without the CacheItemPoolInterface
, PHPStan isn't capable of resolving the methods from CIP.
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.
The only way to allows it to resolve it is by adding:
private CacheInterface&CacheItemPoolInterface $cache,
Needs a rebase after #318 |
45b6de4
to
634aac4
Compare
e11e413
to
6e1c982
Compare
Thank you @Guikingone. |
…-hertel) This PR was merged into the main branch. Discussion ---------- [Examples] Add symfony/cache as dependency for examples | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT Related to #257 and #293 Commits ------- e641c09 Add symfony/cache as dependency for examples
Hi 👋🏻
The configuration wasn't complete enough to handle custom strategy / key for the cache store, here's the fix, tests are validated (both in the project and in a custom project too).