@@ -97,18 +97,19 @@ All notable changes to this project will be documented in this file, in reverse
9797
9898 and removes the dependency http-interop/http-server-middleware.
9999
100- - [ #543 ] ( https://github.com/zendframework/zend-expressive/pull/543 ) renames
100+ - [ #543 ] ( https://github.com/zendframework/zend-expressive/pull/543 ) and
101+ [ #546 ] ( https://github.com/zendframework/zend-expressive/pull/546 ) renames the
101102 ` Zend\Expressive\Middleware\NotFoundHandler ` to
102103 ` Zend\Expressive\Middleware\NotFoundMiddleware ` , and its accompanying factory
103104 ` Zend\Expressive\Container\NotFoundHandlerFactory ` to
104- ` Zend\Expressive\Container\NotFoundMiddlewareFactory ` .
105+ ` Zend\Expressive\Container\NotFoundMiddlewareFactory ` . Additionally, the
106+ class now does the work of the former ` Zend\Expressive\Delegate\NotFoundDelegate ` ,
107+ and, as such, accepts the following constructor arguments:
105108
106- - [ #543 ] ( https://github.com/zendframework/zend-expressive/pull/543 ) renames
107- ` Zend\Expressive\Delegate\NotFoundDelegate ` to
108- ` Zend\Expressive\Handler\NotFoundHandler ` , updating it to implement the PSR-15
109- ` RequestHandlerInterface ` . It also renames the factory
110- ` Zend\Expressive\Container\NotFoundDelegateFactory ` to
111- ` Zend\Expressive\Container\NotFoundHandlerFactory ` .
109+ - PSR-7 ` ResponseInterface $responsePrototype ` (required)
110+ - ` Zend\Expressive\Template\TemplateRendererInterface $renderer ` (optional)
111+ - ` string $template = self::TEMPLATE_DEFAULT ` (optional; defaults to "error::404")
112+ - ` string $layout = self::LAYOUT_DEFAULT ` (optional; defaults to "layout::default")
112113
113114- [ #543 ] ( https://github.com/zendframework/zend-expressive/pull/543 ) refactors
114115 ` Zend\Expressive\Application ` completely.
@@ -187,6 +188,13 @@ All notable changes to this project will be documented in this file, in reverse
187188- [ #543 ] ( https://github.com/zendframework/zend-expressive/pull/543 ) removes
188189 support for http-interop/http-server-middleware.
189190
191+ - [ #546 ] ( https://github.com/zendframework/zend-expressive/pull/546 ) removes the
192+ class ` Zend\Expressive\Delegate\DefaultDelegate ` , as there is no longer a
193+ concept of a default handler invoked by the application. Instead, developers
194+ MUST pipe middleware at the innermost layer of the pipeline guaranteed to
195+ return a response; we recommend using ` Zend\Expressive\Middleware\NotFoundMiddleware `
196+ for this purpose.
197+
190198- [ #543 ] ( https://github.com/zendframework/zend-expressive/pull/543 ) removes the
191199 class ` Zend\Expressive\Middleware\RouteMiddleware ` . Use the
192200 ` PathBasedRoutingMiddleware ` or ` RouteMiddleware ` from zend-expressive-router
0 commit comments