This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
zend-expressive 3.0.0alpha3
weierophinney
released this
06 Feb 16:07
·
461 commits
to master
since this release
Added
- Nothing.
Changed
-
#546 merges
Zend\Expressive\Middleware\NotFoundHandler
intoZend\Expressive\Middleware\NotFoundMiddleware
, as well as mergesZend\Expressive\Container\NotFoundHandlerFactory
intoZend\Expressive\Container\NotFoundMiddlewareFactory
.NotFoundMiddleware
now does the work of the formerZend\Expressive\Delegate\NotFoundDelegate
, and, as such, accepts the following constructor arguments:- PSR-7
ResponseInterface $responsePrototype
(required) Zend\Expressive\Template\TemplateRendererInterface $renderer
(optional)string $template = self::TEMPLATE_DEFAULT
(optional; defaults to "error::404")string $layout = self::LAYOUT_DEFAULT
(optional; defaults to "layout::default")
- PSR-7
Deprecated
- Nothing.
Removed
- #546 removes the class
Zend\Expressive\Delegate\DefaultDelegate
, as there is no longer a concept of a default handler invoked by the application. Instead, developers MUST pipe middleware at the innermost layer of the pipeline guaranteed to return a response; we recommend usingZend\Expressive\Middleware\NotFoundMiddleware
for this purpose.
Fixed
- Nothing.