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

Commit 47c7639

Browse files
committed
Updated CHANGELOG for #211
1 parent 41295ab commit 47c7639

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

CHANGELOG.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,21 @@ Third release candidate.
1717
array **must** be callables, service names resolving to callable middleware,
1818
or fully qualified class names that can be instantiated without arguments, and
1919
which result in invokable middleware.
20-
- [#200](https://github.com/zendframework/zend-expressive/pull/200) and
21-
[#206](https://github.com/zendframework/zend-expressive/pull/206) add a new
22-
interface, `Zend\Expressive\RouteResultObserverInterface`.
23-
`Zend\Expressive\Application` now also defines two methods,
24-
`attachRouteResultObserver()` and `detachRouteResultObserver()`, which accept
25-
instances of the interface. During `routeMiddleware()`, all observers are
26-
updated immediately following the call to `RouterInterface::match()` with the
27-
`RouteResult` instance. This feature enables the ability to notify objects of
28-
the calculated `RouteResult` without needing to inject middleware into the
29-
system.
20+
- [#200](https://github.com/zendframework/zend-expressive/pull/200),
21+
[#206](https://github.com/zendframework/zend-expressive/pull/206), and
22+
[#211](https://github.com/zendframework/zend-expressive/pull/211) add
23+
functionality for observing computed `RouteResult`s.
24+
`Zend\Expressive\Application` now implements
25+
`Zend\Expressive\Router\RouteResultSubjectInterface`, which allows attaching
26+
`Zend\Expressive\RouteResultObserverInterface` implementations and notifying
27+
them of computed `RouteResult` instances. The following methods are now
28+
available on the `Application` instance:
29+
- `attachRouteResultObserver(Router\RouteResultObserverInterface $observer)`
30+
- `detachRouteResultObserver(Router\RouteResultObserverInterface $observer)`
31+
- `notifyRouteResultObservers(RouteResult $result)`; `Application` calls this
32+
internally within `routeMiddleware`.
33+
This feature enables the ability to notify objects of the calculated
34+
`RouteResult` without needing to inject middleware into the system.
3035
- [#81](https://github.com/zendframework/zend-expressive/pull/81) adds a
3136
cookbook entry for creating 404 handlers.
3237
- [#210](https://github.com/zendframework/zend-expressive/pull/210) adds a

0 commit comments

Comments
 (0)