-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[4.0][HttpFoundation] Future of the Request class #17640
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
Comments
In 4.0 the best would be to extract all the logic from |
I agree and step by step we can even imagine to use the psr implementation one day. |
I think we can use this issue to talk about the future of the So I see several functions to move or change:
If I forgot something or if you don't agree with one of this point, please just tell it ;-) |
@Ener-Getick the issue with using PSR is the immutability, which requires to change the whole architecture of HttpKernel (and of other parts using the Request in Symfony). Renaming some methods to |
@stof I'm not talking about making the |
BTW #6406 also talks about refactoring in part the |
We should think about to remove the |
I have another proposal. I noticed you mentioned creating RequestFactory class. I agree, it would be great. And it would be great to have method which reads request input from php://input stream. Because right now, PHP doesn't read any data for application/json MIME type (and probably for any other, different then application/x-www-form-urlencoded). |
@klinki I love this idea, would be amazing to have such thing in the core (we can even imagine parsing the content asynchronously). edit: i'll create a PR and we'll see what happens |
@klinki afaik, |
Is this still a thing? Maybe for SF5? |
Closing this meta issue. |
Just as a reminder for 4.0 to not forget #17379.
@Tobion can you add to this issue the
4.0
milestone please?The text was updated successfully, but these errors were encountered: