This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Expressive 2.1.0
Added
- #480 updates the
ImplicitHeadMiddleware
to add a request attribute indicating the request was originally generated for aHEAD
request before delegating the request; you can now pull the attributeZend\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 tolayout::default
if not provided. That value will be passed for thelayout
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.