This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Expressive 2.1.0
Added
- #480 updates the
ImplicitHeadMiddlewareto add a request attribute indicating the request was originally generated for aHEADrequest before delegating the request; you can now pull the attributeZend\Expressive\Middleware\ImplicitHeadMiddleware::FORWARDED_HTTP_METHOD_ATTRIBUTEin your own middleware in order to vary behavior in these scenarios.
Changed
-
#505 modifies
Zend\Expressive\Applicationto 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
NotFoundDelegateto accept an optional$layoutargument to its constructor; the value defaults tolayout::defaultif not provided. That value will be passed for thelayouttemplate 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.