Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Make serialisable? #81
Is it an idea to make all of the final objects implement
One use-case is for HTTP caches to store request/response objects easily. I ran into this today and ended up requiring zend-diactoros for its Serialization, which just means I end up with two entire PSR-7 implementations loaded at the same time. Any unserialised Nyholm object becomes a Zend object.
The drawback being that we would be adding methods that aren’t specifically defined by PSR-7.
Alternatively this could be spun of just like psr7-server. Which I might work on any way. But did want to throw this up for discussion in the mean time.
Yes, and I think that might be the only one PHP’s native
I wonder how much information should be kept when serialising Stream objects. Is it worth it to try and serialise all available information about the current file pointer, and try to recreate that on deserialisation? If my Stream encloses an
I might find some time today to start a branch and do some testing. Would love to hear your first thoughts on the Stream issue though.