You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, I've been thinking of converting the current Request/Response objects to builders. Parameter converters etc are all working by setting values and the same goes for response listeners. By converting the ResponseBuilder and RequestBuilder into a "frozen" variant, it can also be compliant with PSR. This means that when modifying the request > builder but your action > PSR request. Same goes for the response, you can return a Response(Builder), which gets converted to a PSR Response if not already.
The text was updated successfully, but these errors were encountered:
This is impossible without creating a new incompatible framework (even though you keep the name, which only makes things harder).
Just look at closed issues talking about PSR-7 and at the Symfony blog (even though some of the discussion also happened privately in the core team, I think we posted our conclusions publicly).
this is why we have a PSR-7 bridge allowing to convert between PSR-7 and HttpFoundation instead.
As discussed here, it may be the time to think about refactoring the
Request
and theResponse
classes to follow thephp-fig
standards.You can see this interfaces here.
Message from @iltar:
The text was updated successfully, but these errors were encountered: