-
-
Notifications
You must be signed in to change notification settings - Fork 598
Use PSR6 cache #404
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
Use PSR6 cache #404
Conversation
* @param CacheItemPoolInterface $cache | ||
*/ | ||
public function useCache(CacheItemPoolInterface $cachePool) | ||
public function addCache(CacheItemPoolInterface $cachePool) | ||
{ | ||
$this->removePlugin(Plugin\CachePlugin::class); |
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.
Maybe call the removeCache() method here?
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.
I was just a 10 seconds slower than you. It is added now
The removeCache() function will not work properly until #405 is merged. |
@@ -18,10 +18,13 @@ | |||
], | |||
"require": { | |||
"php": "^5.5|^7.0", |
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.
We can probs fix the indentation here. :)
Looks good to go. 👍 |
Thank you for your reviews! |
This PR removes our caching layer an introduce PSR-6 cache instead.
(It feels great to make a PR like this. Remove 500 lines just to add 17) =)
This will fix #390
This is BC break so it should be done before we tag 2.0.