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

Commit 073a4d6

Browse files
committed
Merge branch 'feature/backports-and-refactors' into develop
Close #581
2 parents fbe8be6 + 8e467db commit 073a4d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2389
-1580
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ matrix:
3131
- php: 7
3232
env:
3333
- DEPS=locked
34-
- LEGACY_DEPS="phpunit/phpunit symfony/debug"
34+
- LEGACY_DEPS="phpunit/phpunit symfony/console symfony/debug symfony/finder"
3535
- php: 7
3636
env:
3737
- DEPS=latest
@@ -65,7 +65,9 @@ install:
6565
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
6666
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
6767
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
68+
- if [[ $TEST_COVERAGE == 'true' ]]; then cp phpunit.xml.dist-coverage phpunit.xml.dist ; fi
6869
- stty cols 120 && composer show
70+
- cat phpunit.xml.dist
6971

7072
script:
7173
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi

CHANGELOG.md

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,114 @@
22

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

5+
## 2.2.0 - 2018-03-12
6+
7+
### Added
8+
9+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) adds the
10+
class `Zend\Expressive\ConfigProvider`, and exposes it to the
11+
zend-component-installer Composer plugin. We recommend updating your
12+
`config/config.php` to reference it, as well as the
13+
`Zend\Expressive\Router\ConfigProvider` shipped with zend-expressive-router
14+
versions 2.4 and up.
15+
16+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) adds the
17+
class `Zend\Expressive\Container\ApplicationConfigInjectionDelegator`. The
18+
class can act as a delegator factory, and, when enabled, will inject routes
19+
and pipeline middleware defined in configuration.
20+
21+
Additionally, the class exposes two static methods:
22+
23+
- `injectPipelineFromConfig(Application $app, array $config)`
24+
- `injectRoutesFromConfig(Application $app, array $config)`
25+
26+
These may be called to modify an `Application` instance based on an array of
27+
configuration. See thd documentation for more details.
28+
29+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) adds the
30+
class `Zend\Expressive\Handler\NotFoundHandler`; the class takes over the
31+
functionality previously provided in `Zend\Expressive\Delegate\NotFoundDelegate`.
32+
33+
### Changed
34+
35+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) updates the
36+
minimum supported zend-stratigility version to 2.2.0.
37+
38+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) updates the
39+
minimum supported zend-expressive-router version to 2.4.0.
40+
41+
### Deprecated
42+
43+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) deprecates
44+
the following classes and traits:
45+
46+
- `Zend\Expressive\AppFactory`: if you are using this, you will need to switch
47+
to direct usage of `Zend\Expressive\Application` or a
48+
`Zend\Stratigility\MiddlewarePipe` instance.
49+
50+
- `Zend\Expressive\ApplicationConfigInjectionTrait`: if you are using it, it is
51+
marked internal, and deprecated; it will be removed in version 3.
52+
53+
- `Zend\Expressive\Container\NotFoundDelegateFactory`: the `NotFoundDelegate`
54+
will be renamed to `Zend\Expressive\Handler\NotFoundHandler` in version 3,
55+
making this factory obsolete.
56+
57+
- `Zend\Expressive\Delegate\NotFoundDelegate`: this class becomes
58+
`Zend\Expressive\Handler\NotFoundHandler` in v3, and the new class is added in
59+
version 2.2 as well.
60+
61+
- `Zend\Expressive\Emitter\EmitterStack`: the emitter concept is extracted from
62+
zend-diactoros to a new component, zend-httphandlerrunner. This latter
63+
component is used in version 3, and defines the `EmitterStack` class. Unless
64+
you are extending it or interacting with it directly, this change should not
65+
affect you; the `Zend\Diactoros\Response\EmitterInterface` service will be
66+
directed to the new class in that version.
67+
68+
- `Zend\Expressive\IsCallableInteropMiddlewareTrait`: if you are using it, it is
69+
marked internal, and deprecated; it will be removed in version 3.
70+
71+
- `Zend\Expressive\MarshalMiddlewareTrait`: if you are using it, it is marked
72+
internal, and deprecated; it will be removed in version 3.
73+
74+
- `Zend\Expressive\Middleware\DispatchMiddleware`: this functionality has been
75+
moved to zend-expressive-router, under the `Zend\Expressive\Router\Middleware`
76+
namespace.
77+
78+
- `Zend\Expressive\Middleware\ImplicitHeadMiddleware`: this functionality has been
79+
moved to zend-expressive-router, under the `Zend\Expressive\Router\Middleware`
80+
namespace.
81+
82+
- `Zend\Expressive\Middleware\ImplicitOptionsMiddleware`: this functionality has been
83+
moved to zend-expressive-router, under the `Zend\Expressive\Router\Middleware`
84+
namespace.
85+
86+
- `Zend\Expressive\Middleware\NotFoundHandler`: this will be removed in
87+
version 3, where you can instead pipe `Zend\Expressive\Handler\NotFoundHandler`
88+
directly instead.
89+
90+
- `Zend\Expressive\Middleware\RouteMiddleware`: this functionality has been
91+
moved to zend-expressive-router, under the `Zend\Expressive\Router\Middleware`
92+
namespace.
93+
94+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) deprecates
95+
the following methods from `Zend\Expressive\Application`:
96+
- `pipeRoutingMiddleware()`
97+
- `pipeDispatchMiddleware()`
98+
- `getContainer()`: this method is removed in version 3; container access will only be via the bootstrap.
99+
- `getDefaultDelegate()`: the concept of a default delegate is removed in version 3.
100+
- `getEmitter()`: emitters move to a different collaborator in version 3.
101+
- `injectPipelineFromConfig()` andd `injectRoutesFromConfig()` are methods
102+
defined by the `ApplicationConfigInjectionTrait`, which will be removed in
103+
version 3. Use the `ApplicationConfigInjectionDelegator` instead.
104+
105+
### Removed
106+
107+
- Nothing.
108+
109+
### Fixed
110+
111+
- Nothing.
112+
5113
## 2.1.1 - 2018-03-09
6114

7115
### Added

composer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@
2727
"psr/container": "^1.0",
2828
"psr/http-message": "^1.0.1",
2929
"zendframework/zend-diactoros": "^1.3.10",
30-
"zendframework/zend-expressive-router": "^2.1",
30+
"zendframework/zend-expressive-router": "^2.4.1",
3131
"zendframework/zend-expressive-template": "^1.0.4",
32-
"zendframework/zend-stratigility": "^2.0.1"
32+
"zendframework/zend-stratigility": "^2.2.0"
3333
},
3434
"require-dev": {
3535
"filp/whoops": "^2.1.6 || ^1.1.10",
3636
"malukenho/docheader": "^0.1.5",
3737
"mockery/mockery": "^1.0",
3838
"phpunit/phpunit": "^5.7.23 || ^6.4.3",
3939
"zendframework/zend-coding-standard": "~1.0.0",
40-
"zendframework/zend-expressive-aurarouter": "^2.0",
41-
"zendframework/zend-expressive-fastroute": "^2.0",
42-
"zendframework/zend-expressive-zendrouter": "^2.0.1",
40+
"zendframework/zend-expressive-aurarouter": "^2.2",
41+
"zendframework/zend-expressive-fastroute": "^2.2",
42+
"zendframework/zend-expressive-zendrouter": "^2.2",
4343
"zendframework/zend-servicemanager": "^3.3 || ^2.7.8"
4444
},
4545
"conflict": {
@@ -74,6 +74,9 @@
7474
"dev-master": "2.1.x-dev",
7575
"dev-develop": "2.2.x-dev",
7676
"dev-release-3.0.0": "3.0.x-dev"
77+
},
78+
"zf": {
79+
"config-provider": "Zend\\Expressive\\ConfigProvider"
7780
}
7881
},
7982
"bin": [

0 commit comments

Comments
 (0)