@@ -6,6 +6,34 @@ All notable changes to this project will be documented in this file, in reverse
66
77### Added
88
9+ - [ #309 ] ( https://github.com/zendframework/zend-expressive/pull/309 ) adds the
10+ ability to provide options with which to instantiate the ` FinalHandler `
11+ instance, via the configuration:
12+
13+ ``` php
14+ [
15+ 'final_handler' => [
16+ 'options' => [ /* array of options */ ],
17+ ],
18+ ```
19+
20+ - [ #373 ] ( https://github.com/zendframework/zend-expressive/pull/373 ) adds interception
21+ of exceptions from the ` ServerRequestFactory ` for invalid request information in order
22+ to return ` 400 ` responses.
23+
24+ - [ #432 ] ( https://github.com/zendframework/zend-expressive/pull/432 ) adds two new
25+ configuration flags for use with ` Zend\Expressive\Container\ApplicationFactory ` :
26+ - ` zend-expressive.programmatic_pipelines ` : when enabled, the factory will
27+ ignore the ` middleware_pipeline ` and ` routes ` configuration, allowing you to
28+ wire these programmatically instead. We recommend creating these in the
29+ files ` config/pipeline.php ` and ` config/routes.php ` , respectively, and
30+ modifying your ` public/index.php ` to ` require ` these files in statements
31+ immediately preceding the call to ` $app->run() ` .
32+ - ` zend-expressive.raise_throwables ` : when enabled, this will be used to
33+ notify zend-stratigility's internal dispatcher to no longer catch
34+ exceptions/throwables, and instead allow them to bubble out. This allows you
35+ to write custom middleware for handling errors.
36+
937- [ #429 ] ( https://github.com/zendframework/zend-expressive/pull/429 ) adds
1038 ` Zend\Expressive\Application::getDefaultDelegate() ` as a
1139 forwards-compatibility measure for the upcoming version 2.0.0. Currently,
@@ -16,6 +44,21 @@ All notable changes to this project will be documented in this file, in reverse
1644- [ #429 ] ( https://github.com/zendframework/zend-expressive/pull/429 ) updates the
1745 minimum supported zend-stratigility version to 1.3.3.
1846
47+ - [ #396 ] ( https://github.com/zendframework/zend-expressive/pull/396 ) updates the
48+ ` Zend\Expressive\Container\ApplicationFactory ` to vary creation of the
49+ ` Application ` instance based on two new configuration variables:
50+
51+ - ` zend-expressive.programmatic_pipeline ` will cause the factory to skip
52+ injection of the middleware pipeline and routes from configuration. It is
53+ then up to the developer to do so, or use the ` Application ` API to pipe
54+ middleware and/or add routed middleware.
55+
56+ - ` zend-expressive.raise_throwables ` will cause the factory to call the new
57+ ` raiseThrowables() ` method exposed by ` Application ` (and inherited from
58+ ` Zend\Stratigility\MiddlewarePipe ` ). Doing so will cause the application to
59+ raise any ` Throwable ` or ` Exception ` instances caught, instead of catching
60+ them and dispatching them to (legacy) Stratigility error middleware.
61+
1962### Deprecated
2063
2164- [ #429 ] ( https://github.com/zendframework/zend-expressive/pull/429 ) deprecates
@@ -48,7 +91,9 @@ All notable changes to this project will be documented in this file, in reverse
4891
4992### Removed
5093
51- - Nothing.
94+ - [ #406 ] ( https://github.com/zendframework/zend-expressive/pull/406 ) removes the
95+ ` RouteResultSubjectInterface ` implementation from ` Zend\Expressive\Application ` ,
96+ per the deprecation prior to the 1.0 stable release.
5297
5398### Fixed
5499
0 commit comments