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

Commit

Permalink
Extracts CHANGELOG entries for #546 into 3.0.0alpha3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Feb 6, 2018
1 parent ba80db2 commit 5fdb648
Showing 1 changed file with 46 additions and 16 deletions.
62 changes: 46 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,44 @@

All notable changes to this project will be documented in this file, in reverse chronological order by release.

## 3.0.0alpha3 - 2018-02-06

### Added

- Nothing.

### Changed

- [#546](https://github.com/zendframework/zend-expressive/pull/546) merges
`Zend\Expressive\Middleware\NotFoundHandler` into
`Zend\Expressive\Middleware\NotFoundMiddleware`, as well as merges
`Zend\Expressive\Container\NotFoundHandlerFactory` into
`Zend\Expressive\Container\NotFoundMiddlewareFactory`. `NotFoundMiddleware`
now does the work of the former `Zend\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")

### Deprecated

- Nothing.

### Removed

- [#546](https://github.com/zendframework/zend-expressive/pull/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 using `Zend\Expressive\Middleware\NotFoundMiddleware`
for this purpose.

### Fixed

- Nothing.

## 3.0.0alpha2 - 2018-02-05

### Added
Expand Down Expand Up @@ -97,19 +135,18 @@ All notable changes to this project will be documented in this file, in reverse

and removes the dependency http-interop/http-server-middleware.

- [#543](https://github.com/zendframework/zend-expressive/pull/543) and
[#546](https://github.com/zendframework/zend-expressive/pull/546) renames the
- [#543](https://github.com/zendframework/zend-expressive/pull/543) renames
`Zend\Expressive\Middleware\NotFoundHandler` to
`Zend\Expressive\Middleware\NotFoundMiddleware`, and its accompanying factory
`Zend\Expressive\Container\NotFoundHandlerFactory` to
`Zend\Expressive\Container\NotFoundMiddlewareFactory`. Additionally, the
class now does the work of the former `Zend\Expressive\Delegate\NotFoundDelegate`,
and, as such, accepts the following constructor arguments:
`Zend\Expressive\Container\NotFoundMiddlewareFactory`.

- 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")
- [#543](https://github.com/zendframework/zend-expressive/pull/543) renames
`Zend\Expressive\Delegate\NotFoundDelegate` to
`Zend\Expressive\Handler\NotFoundHandler`, updating it to implement the PSR-15
`RequestHandlerInterface`. It also renames the factory
`Zend\Expressive\Container\NotFoundDelegateFactory` to
`Zend\Expressive\Container\NotFoundHandlerFactory`.

- [#543](https://github.com/zendframework/zend-expressive/pull/543) refactors
`Zend\Expressive\Application` completely.
Expand Down Expand Up @@ -188,13 +225,6 @@ All notable changes to this project will be documented in this file, in reverse
- [#543](https://github.com/zendframework/zend-expressive/pull/543) removes
support for http-interop/http-server-middleware.

- [#546](https://github.com/zendframework/zend-expressive/pull/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 using `Zend\Expressive\Middleware\NotFoundMiddleware`
for this purpose.

- [#543](https://github.com/zendframework/zend-expressive/pull/543) removes the
class `Zend\Expressive\Middleware\RouteMiddleware`. Use the
`PathBasedRoutingMiddleware` or `RouteMiddleware` from zend-expressive-router
Expand Down

0 comments on commit 5fdb648

Please sign in to comment.