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

Expressive 2.1.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 11 Dec 21:43
· 586 commits to master since this release

Added

  • #480 updates the ImplicitHeadMiddleware to add a request attribute indicating the request was originally generated for a HEAD request before delegating the request; you can now pull the attribute Zend\Expressive\Middleware\ImplicitHeadMiddleware::FORWARDED_HTTP_METHOD_ATTRIBUTE in your own middleware in order to vary behavior in these scenarios.

Changed

  • #505 modifies Zend\Expressive\Application to remove implementation of __call() in favor of the following new methods:

    • get($path, $middleware, $name = null)
    • post($path, $middleware, $name = null)
    • put($path, $middleware, $name = null)
    • patch($path, $middleware, $name = null)
    • delete($path, $middleware, $name = null)

    This change is an internal implementation detail only, and will not affect existing implementations or extensions.

  • #511 modifies the NotFoundDelegate to accept an optional $layout argument to its constructor; the value defaults to layout::default if not provided. That value will be passed for the layout template variable when the delegate renders a template, allowing zend-view users (and potentially other template systems) to customize the layout template used for reporting errors.

    You may provide the template via the configuration zend-expressive.error_handler.layout.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.