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
I am migrating currently a project that uses ZF1 Request and Response object. The Response object has a method to set exceptions to this Response. Since I want to replace only the Request and Response object I have to support that also as Response object from the HttpFoundation.
So my idea was to add that property also to the Response object
I would also create a PR for that :)
Example
$response= new Response();
$response->attributes->set('something', true);
The text was updated successfully, but these errors were encountered:
Do you really need to use Symfony Response for that? I'm not sure it's valid just because Zend Response does it.
The Response object has a method to set exceptions to this Response.
ZF will handle it as such i assume? Symfony has no such concept, so i'm not sure what you're expecting?
If it's just to transfer attribtues/anything, i don't think you need the Response object for that per se. Or at least i dont think core should provide something for that.
Description
The request object have attributes property where application can save custom informations. This possibility is missing on responses. (https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/Request.php#L74)
I am migrating currently a project that uses ZF1 Request and Response object. The Response object has a method to set exceptions to this Response. Since I want to replace only the Request and Response object I have to support that also as Response object from the HttpFoundation.
So my idea was to add that property also to the Response object
I would also create a PR for that :)
Example
The text was updated successfully, but these errors were encountered: