-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
PSR: Cache #4667
PSR: Cache #4667
Conversation
27c3461
to
4f2f932
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.
I have no problem with this and the implementation looks fine. I just left one comment.
@samsonasik any idea about this Rector error causing test failures?
|
@MGatner please rebase and re-run composer update, it fixed at #4671 (comment) |
Ah great, thank you! I missed that - that's what I get for skipping my morning review 🙄 |
Description
The core framework intentionally does not aim to meet all PSR interfaces, which for the most part works fine. Some PSR components allowing provisions for libraries and projects that complete the requirements. In this case, having adapters available in the framework itself can prevent CodeIgniter users from having to install additional third-party libraries that duplicate functionality.
This is the first PR to add adapters for PSR components, targeting Cache. There are two Cache PSR's from FIG:
These adapters sit on top of
CodeIgniter\Cache
's handlers. Because of the additional layer the PSR adapters are not recommended for direct use except when the PSR interfaces are required.Tests are provided by php-cache who offers complete integration testing for PSR-6 and PSR-16 implementations.
Checklist: