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

Commit 05c8207

Browse files
committed
Merging develop to master in preparation for 2.1.0 release
2 parents 0fd9218 + 2a1d20b commit 05c8207

File tree

96 files changed

+783
-557
lines changed

Some content is hidden

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

96 files changed

+783
-557
lines changed

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/doc export-ignore
2-
/test export-ignore
31
/.coveralls.yml export-ignore
42
/.docheader export-ignore
53
/.gitattributes export-ignore
64
/.gitignore export-ignore
75
/.travis.yml export-ignore
86
/composer.lock export-ignore
7+
/docs/ export-ignore
98
/mkdocs.yml export-ignore
109
/phpcs.xml export-ignore
1110
/phpunit.xml.dist export-ignore
11+
/test/ export-ignore

.gitignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
doc/html/
2-
vendor/
3-
phpunit.xml
4-
zf-mkdoc-theme/
5-
clover.xml
6-
coveralls-upload.json
7-
zf-mkdoc-theme.tgz
1+
/clover.xml
2+
/coveralls-upload.json
3+
/docs/html/
4+
/phpunit.xml
5+
/vendor/
6+
/zf-mkdoc-theme.tgz
7+
/zf-mkdoc-theme/

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,28 @@ env:
1010
global:
1111
- COMPOSER_ARGS="--no-interaction"
1212
- COVERAGE_DEPS="satooshi/php-coveralls"
13-
- LEGACY_DEPS="phpunit/phpunit"
1413

1514
matrix:
1615
include:
1716
- php: 5.6
1817
env:
1918
- DEPS=lowest
19+
- LEGACY_DEPS="phpunit/phpunit malukenho/docheader"
2020
- php: 5.6
2121
env:
2222
- DEPS=locked
23-
- CS_CHECK=true
24-
- TEST_COVERAGE=true
23+
- LEGACY_DEPS="phpunit/phpunit malukenho/docheader"
2524
- php: 5.6
2625
env:
2726
- DEPS=latest
27+
- LEGACY_DEPS="phpunit/phpunit malukenho/docheader"
2828
- php: 7
2929
env:
3030
- DEPS=lowest
3131
- php: 7
3232
env:
3333
- DEPS=locked
34+
- LEGACY_DEPS="phpunit/phpunit"
3435
- php: 7
3536
env:
3637
- DEPS=latest
@@ -40,6 +41,8 @@ matrix:
4041
- php: 7.1
4142
env:
4243
- DEPS=locked
44+
- CS_CHECK=true
45+
- TEST_COVERAGE=true
4346
- php: 7.1
4447
env:
4548
- DEPS=latest
@@ -52,16 +55,13 @@ matrix:
5255
- php: 7.2
5356
env:
5457
- DEPS=latest
55-
allow_failures:
56-
- php: 7.2
5758

5859
before_install:
59-
- if [[ $TEST_COVERAGE != 'true' && "$(php --version | grep xdebug -ci)" -ge 1 ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
60-
- travis_retry composer self-update
60+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
6161

6262
install:
6363
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
64-
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
64+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
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

CHANGELOG.md

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

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

5+
## 2.1.0 - 2017-12-11
6+
7+
### Added
8+
9+
- [#480](https://github.com/zendframework/zend-expressive/pull/480) updates the
10+
`ImplicitHeadMiddleware` to add a request attribute indicating the request was
11+
originally generated for a `HEAD` request before delegating the request; you
12+
can now pull the attribute `Zend\Expressive\Middleware\ImplicitHeadMiddleware::FORWARDED_HTTP_METHOD_ATTRIBUTE`
13+
in your own middleware in order to vary behavior in these scenarios.
14+
15+
### Changed
16+
17+
- [#505](https://github.com/zendframework/zend-expressive/pull/505) modifies
18+
`Zend\Expressive\Application` to remove implementation of `__call()` in favor
19+
of the following new methods:
20+
21+
- `get($path, $middleware, $name = null)`
22+
- `post($path, $middleware, $name = null)`
23+
- `put($path, $middleware, $name = null)`
24+
- `patch($path, $middleware, $name = null)`
25+
- `delete($path, $middleware, $name = null)`
26+
27+
This change is an internal implementation detail only, and will not affect
28+
existing implementations or extensions.
29+
30+
- [#511](https://github.com/zendframework/zend-expressive/pull/511) modifies
31+
the `NotFoundDelegate` to accept an optional `$layout` argument to its
32+
constructor; the value defaults to `layout::default` if not provided. That
33+
value will be passed for the `layout` template variable when the delegate
34+
renders a template, allowing zend-view users (and potentially other template
35+
systems) to customize the layout template used for reporting errors.
36+
37+
You may provide the template via the configuration
38+
`zend-expressive.error_handler.layout`.
39+
40+
### Deprecated
41+
42+
- Nothing.
43+
44+
### Removed
45+
46+
- Nothing.
47+
48+
### Fixed
49+
50+
- Nothing.
51+
552
## 2.0.6 - 2017-12-11
653

754
### Added

LICENSE.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
1-
Copyright (c) 2015-2016, Zend Technologies USA, Inc.
1+
Copyright (c) 2015-2017, Zend Technologies USA, Inc.
22
All rights reserved.
33

4-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
56

6-
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
- Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
79

8-
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10+
- Redistributions in binary form must reproduce the above copyright notice, this
11+
list of conditions and the following disclaimer in the documentation and/or
12+
other materials provided with the distribution.
913

10-
- Neither the name of Zend Technologies USA, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
14+
- Neither the name of Zend Technologies USA, Inc. nor the names of its
15+
contributors may be used to endorse or promote products derived from this
16+
software without specific prior written permission.
1117

12-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
22+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ documentation.
8484

8585
## Documentation
8686

87-
Documentation is [in the doc tree](doc/book/), and can be compiled using [mkdocs](http://www.mkdocs.org):
87+
Documentation is [in the doc tree](docs/book/), and can be compiled using [mkdocs](http://www.mkdocs.org):
8888

8989
```bash
9090
$ mkdocs build

composer.json

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
11
{
22
"name": "zendframework/zend-expressive",
33
"description": "PSR-7 Middleware Microframework based on Stratigility",
4-
"homepage": "https://docs.zendframework.com/zend-expressive/",
5-
"type": "library",
64
"license": "BSD-3-Clause",
75
"keywords": [
86
"http",
97
"middleware",
108
"psr",
119
"psr-7",
12-
"psr-11"
10+
"psr-11",
11+
"zf",
12+
"zendframework",
13+
"zend-expressive"
1314
],
1415
"support": {
1516
"docs": "https://docs.zendframework.com/zend-expressive/",
1617
"issues": "https://github.com/zendframework/zend-expressive/issues",
1718
"source": "https://github.com/zendframework/zend-expressive",
19+
"rss": "https://github.com/zendframework/zend-expressive/releases.atom",
1820
"slack": "https://zendframework-slack.herokuapp.com",
1921
"forum": "https://discourse.zendframework.com/c/questions/expressive"
2022
},
21-
"extra": {
22-
"branch-alias": {
23-
"dev-master": "2.0-dev",
24-
"dev-develop": "2.1-dev"
25-
}
26-
},
2723
"require": {
2824
"php": "^5.6 || ^7.0",
2925
"fig/http-message-util": "^1.1.2",
@@ -39,7 +35,7 @@
3935
"filp/whoops": "^2.1.6 || ^1.1.10",
4036
"malukenho/docheader": "^0.1.5",
4137
"mockery/mockery": "^1.0",
42-
"phpunit/phpunit": "^5.7.22 || ^6.4.1",
38+
"phpunit/phpunit": "^5.7.23 || ^6.4.3",
4339
"zendframework/zend-coding-standard": "~1.0.0",
4440
"zendframework/zend-expressive-aurarouter": "^2.0",
4541
"zendframework/zend-expressive-fastroute": "^2.0",
@@ -49,6 +45,14 @@
4945
"conflict": {
5046
"container-interop/container-interop": "<1.2.0"
5147
},
48+
"suggest": {
49+
"filp/whoops": "^2.1 to use the Whoops error handler",
50+
"zendframework/zend-expressive-helpers": "^3.0 for its UrlHelper, ServerUrlHelper, and BodyParseMiddleware",
51+
"aura/di": "^3.2 to make use of Aura.Di dependency injection container",
52+
"xtreamwayz/pimple-container-interop": "^1.0 to use Pimple for dependency injection",
53+
"zendframework/zend-expressive-tooling": "For migration and development tools; require it with the --dev flag",
54+
"zendframework/zend-servicemanager": "^3.3 to use zend-servicemanager for dependency injection"
55+
},
5256
"autoload": {
5357
"psr-4": {
5458
"Zend\\Expressive\\": "src/"
@@ -62,13 +66,15 @@
6266
"test/class_exists.php"
6367
]
6468
},
65-
"suggest": {
66-
"filp/whoops": "^2.1 to use the Whoops error handler",
67-
"zendframework/zend-expressive-helpers": "^3.0 for its UrlHelper, ServerUrlHelper, and BodyParseMiddleware",
68-
"aura/di": "^3.2 to make use of Aura.Di dependency injection container",
69-
"xtreamwayz/pimple-container-interop": "^1.0 to use Pimple for dependency injection",
70-
"zendframework/zend-expressive-tooling": "For migration and development tools; require it with the --dev flag",
71-
"zendframework/zend-servicemanager": "^3.3 to use zend-servicemanager for dependency injection"
69+
"config": {
70+
"sort-packages": true
71+
},
72+
"extra": {
73+
"branch-alias": {
74+
"dev-master": "2.1.x-dev",
75+
"dev-develop": "2.2.x-dev",
76+
"dev-release-3.0.0": "3.0.x-dev"
77+
}
7278
},
7379
"bin": [
7480
"bin/expressive-tooling"
@@ -79,11 +85,11 @@
7985
"@cs-check",
8086
"@test"
8187
],
82-
"upload-coverage": "coveralls -v",
8388
"cs-check": "phpcs",
8489
"cs-fix": "phpcbf",
8590
"test": "phpunit --colors=always",
86-
"test-coverage": "phpunit --coverage-clover clover.xml",
87-
"license-check": "vendor/bin/docheader check src/ test/"
91+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
92+
"upload-coverage": "coveralls -v",
93+
"license-check": "docheader check src/ test/"
8894
}
8995
}

0 commit comments

Comments
 (0)