All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #41 adds support for PHP 7.3.
- Nothing.
- Nothing.
- #41 removes support for zend-stdlib v2 releases.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #40 fixes how headers are translated from PSR-7 to zend-http. Previously, they
were always cast to
GenericHeader
instances; now, the bridge usesPsr7Response::psr7HeadersToString
to pass them toZend\Http\Headers::fromString()
, ensuring that the more specific zend-httpHeaderInterface
instance types are created.
- Nothing.
- #38 updates the zendframework/zend-diactoros constraint to allow either the 1.Y or 2.Y series, as they are compatible for the purposes of this package.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #35 fixes the Response from a PSR-7 Stream object with php://memory stream
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #23 fixed the upload of a file when error is not UPLOAD_ERR_OK
- #26 fixes the Stream response from a PSR-7 Stream object
- #28 fixes the baseUrl from a PSR-7 Server request
- #15 updates the
behavior of
Psr7ServerRequest::fromZend()
to check if the request is aZend\Http\PhpEnvironment\Request
and, if so, use the return value of itsgetServer()
method to seed the PSR-7 request's server parameters.
- Nothing.
- Nothing.
- #8 adds and publishes the documentation to https://zendframework.github.io/zend-psr7bridge/
- Nothing.
- Nothing.
- #7 fixes
the logic in
Psr7ServerRequest::convertUploadedFiles()
to ensure that thetmp_name
is provided to the$_FILES
structure from the PSR-7 uploaded files. - #7 fixes
the logic in
Psr7ServerRequest::convertFilesToUploaded()
to iterate the entire value provided it, instead of a fictitiousfile
key.
- Nothing.
- Nothing.
- Nothing.
- #5 Updates
Psr7ServerRequest::fromZend()
to inject the generated PSR-7 request instance with the zend-http cookies.
- #3 Adds support for zend-http -> PSR-7 request tanslation.
- #3 Adds support for PSR-7 <-> zend-http response tanslation.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #2 updates
Zend\Psr7Bridge\Zend\Request
's constructor to callsetUri()
instead ofsetRequestUri()
.
Initial release!
Zend\Psr7Bridge\Psr7ServerRequest::toZend($request, $shallow = false)
allows converting aPsr\Http\Message\ServerRequestInterface
to aZend\Http\PhpEnvironment\Request
instance. The$shallow
flag, when enabled, will omit the body content, body parameters, and upload files from the zend-http request (e.g., for routing purposes).
- Nothing.
- Nothing.
- Nothing.