-
Notifications
You must be signed in to change notification settings - Fork 2k
HTTP Phase 1 #3946
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
HTTP Phase 1 #3946
Conversation
|
A little hard to see sometimes with so many changes to those files, but in general I'm ok with this solution, I think. Nice job. |
ac077f2 to
66b9fa2
Compare
I'm trying to split things into logical commit chunks to make the review easier. I could see some merit in splitting this into a few different PRs: deprecations, trait splits, Response refactor. Let me know if you'd prefer that. |
Nah. You're good as is. |
66b9fa2 to
5b32d54
Compare
|
GitHub Actions appears to be bugging out. I think the tests are all passing but someone should rerun at a later time. |
paulbalandan
left a comment
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 trust all is well for this big PSR-7 compliance.
Some notes below.
|
Documentation PSR compliance may need to be updated http://codeigniter.com/user_guide/intro/psr.html |
Just to be clear, this is by no means PSR-7 compliant yet. The deprecations and interface updates will make space for a new layer of PSR-7-compliant classes but current conflicts prevent us from implementing those. Also, I don't see the framework itself using a compliant HTTP layer because there is currently too much built into the Message/Request/Response classes that breaks compliance. The short-term plan is to apply those requirements onto any PSR-7 set of classes to make them work with the framework, and so third-party packages could use the framework's intermediate layer instead of adding another one. |
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
paulbalandan
left a comment
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.
Looks okay to me, just with very minor fixes.
Description
This is an attempt at a gentler approach to moving our HTTP layer towards PSR compliance. This includes a number of deprecations, which I will note in the User Guide and CHANGELOG once we've had some time to discuss this.
MessageInterfaceto clarify child class requirementsChecklist: