Laminas Diactoros v1.4.0 Release NotesRelease Date: 2017-04-06 // over 4 years ago
zendframework/zend-diactoros#219 adds two new classes,
Laminas\Diactoros\Response\ArraySerializer. Each exposes the static methods
fromArray(), allowing de/serialization of messages from and to arrays.
zendframework/zend-diactoros#236 adds two new constants to the
- zendframework/zend-diactoros#240 changes the
$cookiesargument is present. Previously, it would use
$_COOKIES; now, if a
Cookieheader is present, it will parse and use that to populate the instance instead.
This change allows utilizing cookies that contain period characters (
.) in their names (PHP's built-in cookie handling renames these to replace
_, which can lead to synchronization issues with clients).
- zendframework/zend-diactoros#235 changes the
Uri::__toString()to better follow proscribed behavior in PSR-7. In particular, prior to this release, if a scheme was missing but an authority was present, the class was incorrectly returning a value that did not include a
//prefix. As of this release, it now does this correctly.