Release notes
*Sourced from [zendframework/zend-diactoros's releases](https://github.com/zendframework/zend-diactoros/releases).*
> ## zend-diactoros 1.8.0
> Added
> -----
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) adds the following functions under the `Zend\Diactoros` namespace, each of
> which may be used to derive artifacts from SAPI supergloabls for the purposes
> of generating a `ServerRequest` instance:
> - `normalizeServer(array $server, callable $apacheRequestHeaderCallback = null) : array`
> (main purpose is to aggregate the `Authorization` header in the SAPI params
> when under Apache)
> - `marshalProtocolVersionFromSapi(array $server) : string`
> - `marshalMethodFromSapi(array $server) : string`
> - `marshalUriFromSapi(array $server, array $headers) : Uri`
> - `marshalHeadersFromSapi(array $server) : array`
> - `parseCookieHeader(string $header) : array`
> - `createUploadedFile(array $spec) : UploadedFile` (creates the instance from
> a normal `$_FILES` entry)
> - `normalizeUploadedFiles(array $files) : UploadedFileInterface[]` (traverses
> a potentially nested array of uploaded file instances and/or `$_FILES`
> entries, including those aggregated under mod_php, php-fpm, and php-cgi in
> order to create a flat array of `UploadedFileInterface` instances to use in a
> request)
>
> Changed
> -------
>
> - Nothing.
>
> Deprecated
> ----------
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::normalizeServer()`; the method is
> no longer used internally, and users should instead use `Zend\Diactoros\normalizeServer()`,
> to which it proxies.
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalHeaders()`; the method is
> no longer used internally, and users should instead use `Zend\Diactoros\marshalHeadersFromSapi()`,
> to which it proxies.
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalUriFromServer()`; the method
> is no longer used internally. Users should use `marshalUriFromSapi()` instead.
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalRequestUri()`. the method is no longer
> used internally, and currently proxies to `marshalUriFromSapi()`, pulling the
> discovered path from the `Uri` instance returned by that function. Users
> should use `marshalUriFromSapi()` instead.
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalHostAndPortFromHeaders()`; the method
> is no longer used internally, and currently proxies to `marshalUriFromSapi()`,
> pulling the discovered host and port from the `Uri` instance returned by that
> ... (truncated)
Changelog
*Sourced from [zendframework/zend-diactoros's changelog](https://github.com/zendframework/zend-diactoros/blob/master/CHANGELOG.md).*
> ## 1.8.0 - 2018-06-27
>
> ### Added
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) adds the following functions under the `Zend\Diactoros` namespace, each of
> which may be used to derive artifacts from SAPI supergloabls for the purposes
> of generating a `ServerRequest` instance:
> - `normalizeServer(array $server, callable $apacheRequestHeaderCallback = null) : array`
> (main purpose is to aggregate the `Authorization` header in the SAPI params
> when under Apache)
> - `marshalProtocolVersionFromSapi(array $server) : string`
> - `marshalMethodFromSapi(array $server) : string`
> - `marshalUriFromSapi(array $server, array $headers) : Uri`
> - `marshalHeadersFromSapi(array $server) : array`
> - `parseCookieHeader(string $header) : array`
> - `createUploadedFile(array $spec) : UploadedFile` (creates the instance from
> a normal `$_FILES` entry)
> - `normalizeUploadedFiles(array $files) : UploadedFileInterface[]` (traverses
> a potentially nested array of uploaded file instances and/or `$_FILES`
> entries, including those aggregated under mod_php, php-fpm, and php-cgi in
> order to create a flat array of `UploadedFileInterface` instances to use in a
> request)
>
> ### Changed
>
> - Nothing.
>
> ### Deprecated
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::normalizeServer()`; the method is
> no longer used internally, and users should instead use `Zend\Diactoros\normalizeServer()`,
> to which it proxies.
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalHeaders()`; the method is
> no longer used internally, and users should instead use `Zend\Diactoros\marshalHeadersFromSapi()`,
> to which it proxies.
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalUriFromServer()`; the method
> is no longer used internally. Users should use `marshalUriFromSapi()` instead.
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalRequestUri()`. the method is no longer
> used internally, and currently proxies to `marshalUriFromSapi()`, pulling the
> discovered path from the `Uri` instance returned by that function. Users
> should use `marshalUriFromSapi()` instead.
>
> - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalHostAndPortFromHeaders()`; the method
> is no longer used internally, and currently proxies to `marshalUriFromSapi()`,
> pulling the discovered host and port from the `Uri` instance returned by that
> function. Users should use `marshalUriFromSapi()` instead.
>
> ... (truncated)
Commits
- [`11c9c18`](https://github.com/zendframework/zend-diactoros/commit/11c9c1835e60eef6f9234377a480fcec096ebd9e) Merging develop to master in preparation for 1.8.0 release.
- [`c0acf7a`](https://github.com/zendframework/zend-diactoros/commit/c0acf7a7b1c65da816d0c8fa910b774d62b57735) Updates branch aliases
- [`d091507`](https://github.com/zendframework/zend-diactoros/commit/d0915070cea2f82da3236a1c6710c69e0b075280) Adds release date for 1.8.0 to CHANGELOG
- [`f957629`](https://github.com/zendframework/zend-diactoros/commit/f95762914064dcb59812bfb898c319707e2cbc94) Removes empty 1.7.3 stub from CHANGELOG
- [`1fbad75`](https://github.com/zendframework/zend-diactoros/commit/1fbad75a8b9f28e71aa8b0855dc9a79a5507e342) Import all functions
- [`af0b204`](https://github.com/zendframework/zend-diactoros/commit/af0b2043fc3ffd9253a70898708b19f7f7375ef4) Merge branch 'feature/expose-server-factory-methods-as-functions' into develop
- [`c5b2634`](https://github.com/zendframework/zend-diactoros/commit/c5b2634de93c9361f3b3fd0785c978e7c8f2df7f) Documents new functions introduced in [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/issues/307)
- [`4c44c74`](https://github.com/zendframework/zend-diactoros/commit/4c44c74b3f8bfdc37fd3cfa41f1fbad460b9122d) Adds CHANGELOG entry for [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/issues/307)
- [`cf963a9`](https://github.com/zendframework/zend-diactoros/commit/cf963a950dfde45f683194977a644a4a1e301e21) Extracts new function, `marshalMethodFromSapi()`
- [`f311faf`](https://github.com/zendframework/zend-diactoros/commit/f311faf560313b2b2a6fa53b68445a66d71b6582) Incorporates `normalizeUploadedFileSpecification()` into `normalizeUploadedFi...
- Additional commits viewable in [compare view](https://github.com/zendframework/zend-diactoros/compare/1.7.2...1.8.0)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps zendframework/zend-diactoros from 1.7.2 to 1.8.0.
Release notes
*Sourced from [zendframework/zend-diactoros's releases](https://github.com/zendframework/zend-diactoros/releases).* > ## zend-diactoros 1.8.0 > Added > ----- > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) adds the following functions under the `Zend\Diactoros` namespace, each of > which may be used to derive artifacts from SAPI supergloabls for the purposes > of generating a `ServerRequest` instance: > - `normalizeServer(array $server, callable $apacheRequestHeaderCallback = null) : array` > (main purpose is to aggregate the `Authorization` header in the SAPI params > when under Apache) > - `marshalProtocolVersionFromSapi(array $server) : string` > - `marshalMethodFromSapi(array $server) : string` > - `marshalUriFromSapi(array $server, array $headers) : Uri` > - `marshalHeadersFromSapi(array $server) : array` > - `parseCookieHeader(string $header) : array` > - `createUploadedFile(array $spec) : UploadedFile` (creates the instance from > a normal `$_FILES` entry) > - `normalizeUploadedFiles(array $files) : UploadedFileInterface[]` (traverses > a potentially nested array of uploaded file instances and/or `$_FILES` > entries, including those aggregated under mod_php, php-fpm, and php-cgi in > order to create a flat array of `UploadedFileInterface` instances to use in a > request) > > Changed > ------- > > - Nothing. > > Deprecated > ---------- > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::normalizeServer()`; the method is > no longer used internally, and users should instead use `Zend\Diactoros\normalizeServer()`, > to which it proxies. > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalHeaders()`; the method is > no longer used internally, and users should instead use `Zend\Diactoros\marshalHeadersFromSapi()`, > to which it proxies. > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalUriFromServer()`; the method > is no longer used internally. Users should use `marshalUriFromSapi()` instead. > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalRequestUri()`. the method is no longer > used internally, and currently proxies to `marshalUriFromSapi()`, pulling the > discovered path from the `Uri` instance returned by that function. Users > should use `marshalUriFromSapi()` instead. > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalHostAndPortFromHeaders()`; the method > is no longer used internally, and currently proxies to `marshalUriFromSapi()`, > pulling the discovered host and port from the `Uri` instance returned by that > ... (truncated)Changelog
*Sourced from [zendframework/zend-diactoros's changelog](https://github.com/zendframework/zend-diactoros/blob/master/CHANGELOG.md).* > ## 1.8.0 - 2018-06-27 > > ### Added > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) adds the following functions under the `Zend\Diactoros` namespace, each of > which may be used to derive artifacts from SAPI supergloabls for the purposes > of generating a `ServerRequest` instance: > - `normalizeServer(array $server, callable $apacheRequestHeaderCallback = null) : array` > (main purpose is to aggregate the `Authorization` header in the SAPI params > when under Apache) > - `marshalProtocolVersionFromSapi(array $server) : string` > - `marshalMethodFromSapi(array $server) : string` > - `marshalUriFromSapi(array $server, array $headers) : Uri` > - `marshalHeadersFromSapi(array $server) : array` > - `parseCookieHeader(string $header) : array` > - `createUploadedFile(array $spec) : UploadedFile` (creates the instance from > a normal `$_FILES` entry) > - `normalizeUploadedFiles(array $files) : UploadedFileInterface[]` (traverses > a potentially nested array of uploaded file instances and/or `$_FILES` > entries, including those aggregated under mod_php, php-fpm, and php-cgi in > order to create a flat array of `UploadedFileInterface` instances to use in a > request) > > ### Changed > > - Nothing. > > ### Deprecated > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::normalizeServer()`; the method is > no longer used internally, and users should instead use `Zend\Diactoros\normalizeServer()`, > to which it proxies. > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalHeaders()`; the method is > no longer used internally, and users should instead use `Zend\Diactoros\marshalHeadersFromSapi()`, > to which it proxies. > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalUriFromServer()`; the method > is no longer used internally. Users should use `marshalUriFromSapi()` instead. > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalRequestUri()`. the method is no longer > used internally, and currently proxies to `marshalUriFromSapi()`, pulling the > discovered path from the `Uri` instance returned by that function. Users > should use `marshalUriFromSapi()` instead. > > - [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/pull/307) deprecates `ServerRequestFactory::marshalHostAndPortFromHeaders()`; the method > is no longer used internally, and currently proxies to `marshalUriFromSapi()`, > pulling the discovered host and port from the `Uri` instance returned by that > function. Users should use `marshalUriFromSapi()` instead. > > ... (truncated)Commits
- [`11c9c18`](https://github.com/zendframework/zend-diactoros/commit/11c9c1835e60eef6f9234377a480fcec096ebd9e) Merging develop to master in preparation for 1.8.0 release. - [`c0acf7a`](https://github.com/zendframework/zend-diactoros/commit/c0acf7a7b1c65da816d0c8fa910b774d62b57735) Updates branch aliases - [`d091507`](https://github.com/zendframework/zend-diactoros/commit/d0915070cea2f82da3236a1c6710c69e0b075280) Adds release date for 1.8.0 to CHANGELOG - [`f957629`](https://github.com/zendframework/zend-diactoros/commit/f95762914064dcb59812bfb898c319707e2cbc94) Removes empty 1.7.3 stub from CHANGELOG - [`1fbad75`](https://github.com/zendframework/zend-diactoros/commit/1fbad75a8b9f28e71aa8b0855dc9a79a5507e342) Import all functions - [`af0b204`](https://github.com/zendframework/zend-diactoros/commit/af0b2043fc3ffd9253a70898708b19f7f7375ef4) Merge branch 'feature/expose-server-factory-methods-as-functions' into develop - [`c5b2634`](https://github.com/zendframework/zend-diactoros/commit/c5b2634de93c9361f3b3fd0785c978e7c8f2df7f) Documents new functions introduced in [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/issues/307) - [`4c44c74`](https://github.com/zendframework/zend-diactoros/commit/4c44c74b3f8bfdc37fd3cfa41f1fbad460b9122d) Adds CHANGELOG entry for [#307](https://github-redirect.dependabot.com/zendframework/zend-diactoros/issues/307) - [`cf963a9`](https://github.com/zendframework/zend-diactoros/commit/cf963a950dfde45f683194977a644a4a1e301e21) Extracts new function, `marshalMethodFromSapi()` - [`f311faf`](https://github.com/zendframework/zend-diactoros/commit/f311faf560313b2b2a6fa53b68445a66d71b6582) Incorporates `normalizeUploadedFileSpecification()` into `normalizeUploadedFi... - Additional commits viewable in [compare view](https://github.com/zendframework/zend-diactoros/compare/1.7.2...1.8.0)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.