Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Conversation

@dependabot-preview
Copy link

Bumps zendframework/zend-diactoros from 1.7.1 to 1.8.0.

Release notes

Sourced from zendframework/zend-diactoros's releases.

zend-diactoros 1.8.0

Added

  • #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 deprecates ServerRequestFactory::normalizeServer(); the method is
    no longer used internally, and users should instead use Zend\Diactoros\normalizeServer(),
    to which it proxies.

  • #307 deprecates ServerRequestFactory::marshalHeaders(); the method is
    no longer used internally, and users should instead use Zend\Diactoros\marshalHeadersFromSapi(),
    to which it proxies.

  • #307 deprecates ServerRequestFactory::marshalUriFromServer(); the method
    is no longer used internally. Users should use marshalUriFromSapi() instead.

  • #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 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.

1.8.0 - 2018-06-27

Added

  • #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 deprecates ServerRequestFactory::normalizeServer(); the method is
    no longer used internally, and users should instead use Zend\Diactoros\normalizeServer(),
    to which it proxies.

  • #307 deprecates ServerRequestFactory::marshalHeaders(); the method is
    no longer used internally, and users should instead use Zend\Diactoros\marshalHeadersFromSapi(),
    to which it proxies.

  • #307 deprecates ServerRequestFactory::marshalUriFromServer(); the method
    is no longer used internally. Users should use marshalUriFromSapi() instead.

  • #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 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 Merging develop to master in preparation for 1.8.0 release.
  • c0acf7a Updates branch aliases
  • d091507 Adds release date for 1.8.0 to CHANGELOG
  • f957629 Removes empty 1.7.3 stub from CHANGELOG
  • 1fbad75 Import all functions
  • af0b204 Merge branch 'feature/expose-server-factory-methods-as-functions' into develop
  • c5b2634 Documents new functions introduced in #307
  • 4c44c74 Adds CHANGELOG entry for #307
  • cf963a9 Extracts new function, marshalMethodFromSapi()
  • f311faf Incorporates normalizeUploadedFileSpecification() into `normalizeUploadedFi...
  • Additional commits viewable in compare view

Dependabot compatibility score

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:

  • 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.

@dependabot-preview
Copy link
Author

Superseded by #19.

@dependabot-preview dependabot-preview bot deleted the dependabot/composer/zendframework/zend-diactoros-1.8.0 branch August 1, 2018 07:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants