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

Commit 9dfc128

Browse files
committed
Merge branch 'feature/526' into develop
Close #526
2 parents 2478f18 + f5188e0 commit 9dfc128

File tree

87 files changed

+275
-233
lines changed

Some content is hidden

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

87 files changed

+275
-233
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: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ matrix:
2121
env:
2222
- DEPS=locked
2323
- LEGACY_DEPS="phpunit/phpunit malukenho/docheader"
24-
- CS_CHECK=true
25-
- TEST_COVERAGE=true
2624
- php: 5.6
2725
env:
2826
- DEPS=latest
@@ -33,6 +31,7 @@ matrix:
3331
- php: 7
3432
env:
3533
- DEPS=locked
34+
- LEGACY_DEPS="phpunit/phpunit"
3635
- php: 7
3736
env:
3837
- DEPS=latest
@@ -42,6 +41,8 @@ matrix:
4241
- php: 7.1
4342
env:
4443
- DEPS=locked
44+
- CS_CHECK=true
45+
- TEST_COVERAGE=true
4546
- php: 7.1
4647
env:
4748
- DEPS=latest
@@ -54,12 +55,9 @@ matrix:
5455
- php: 7.2
5556
env:
5657
- DEPS=latest
57-
allow_failures:
58-
- php: 7.2
5958

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

6462
install:
6563
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs

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: 25 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,14 @@
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.0.x-dev",
75+
"dev-develop": "2.1.x-dev"
76+
}
7277
},
7378
"bin": [
7479
"bin/expressive-tooling"
@@ -79,11 +84,11 @@
7984
"@cs-check",
8085
"@test"
8186
],
82-
"upload-coverage": "coveralls -v",
8387
"cs-check": "phpcs",
8488
"cs-fix": "phpcbf",
8589
"test": "phpunit --colors=always",
86-
"test-coverage": "phpunit --coverage-clover clover.xml",
87-
"license-check": "vendor/bin/docheader check src/ test/"
90+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
91+
"upload-coverage": "coveralls -v",
92+
"license-check": "docheader check src/ test/"
8893
}
8994
}

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CONDUCT.md renamed to docs/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributor Code of Conduct
22

3-
The Zend Framework project adheres to [The Code Manifesto](http://codemanifesto.com)
3+
This project adheres to [The Code Manifesto](http://codemanifesto.com)
44
as its guidelines for contributor interactions.
55

66
## The Code Manifesto

CONTRIBUTING.md renamed to docs/CONTRIBUTING.md

Lines changed: 8 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,16 @@
22

33
## RESOURCES
44

5-
If you wish to contribute to Zend Framework, please be sure to
5+
If you wish to contribute to this project, please be sure to
66
read/subscribe to the following resources:
77

8-
- [Coding Standards](https://github.com/zendframework/zf2/wiki/Coding-Standards)
9-
- [Contributor's Guide](CONTRIBUTING.md)
10-
- ZF Contributor's mailing list:
11-
Archives: http://zend-framework-community.634137.n4.nabble.com/ZF-Contributor-f680267.html
12-
Subscribe: [email protected]
13-
- ZF Contributor's IRC channel:
14-
#zftalk.dev on Freenode.net
8+
- [Coding Standards](https://github.com/zendframework/zend-coding-standard)
9+
- [Forums](https://discourse.zendframework.com/c/contributors)
10+
- [Slack](https://zendframework-slack.herokuapp.com)
11+
- [Code of Conduct](CODE_OF_CONDUCT.md)
1512

16-
If you are working on new features or refactoring [create a proposal](https://github.com/zendframework/zend-expressive/issues/new).
17-
18-
## Reporting Potential Security Issues
19-
20-
If you have encountered a potential security vulnerability, please **DO NOT** report it on the public
21-
issue tracker: send it to us at [[email protected]](mailto:[email protected]) instead.
22-
We will work with you to verify the vulnerability and patch it as soon as possible.
23-
24-
When reporting issues, please provide the following information:
25-
26-
- Component(s) affected
27-
- A description indicating how to reproduce the issue
28-
- A summary of the security vulnerability and impact
29-
30-
We request that you contact us via the email address above and give the project
31-
contributors a chance to resolve the vulnerability and issue a new release prior
32-
to any public exposure; this helps protect users and provides them with a chance
33-
to upgrade and/or update in order to protect their applications.
34-
35-
For sensitive email communications, please use [our PGP key](http://framework.zend.com/zf-security-pgp-key.asc).
13+
If you are working on new features or refactoring
14+
[create a proposal](https://github.com/zendframework/zend-expressive/issues/new).
3615

3716
## RUNNING TESTS
3817

@@ -86,18 +65,6 @@ $ composer cs-fix
8665
If the above fixes any CS issues, please re-run the tests to ensure
8766
they pass, and make sure you add and commit the changes after verification.
8867

89-
## Running License Checks
90-
91-
File-level docblocks should follow the format demonstrated in `.docheader`. To
92-
check for conformity, use:
93-
94-
```console
95-
$ composer license-check
96-
```
97-
98-
This will flag files that are incorrect, which you can then update. Re-run the
99-
tool to verify your changes.
100-
10168
## Recommended Workflow for Contributions
10269

10370
Your first step is to establish a public repository from which we can
@@ -189,15 +156,7 @@ To send a pull request, you have two options.
189156
If using GitHub, you can do the pull request from there. Navigate to
190157
your repository, select the branch you just created, and then select the
191158
"Pull Request" button in the upper right. Select the user/organization
192-
"zendframework" as the recipient.
193-
194-
If using your own repository - or even if using GitHub - you can use `git
195-
format-patch` to create a patchset for us to apply; in fact, this is
196-
**recommended** for security-related patches. If you use `format-patch`, please
197-
send the patches as attachments to:
198-
199-
- [email protected] for patches without security implications
200-
- [email protected] for security patches
159+
"zendframework" (or whatever the upstream organization is) as the recipient.
201160

202161
#### What branch to issue the pull request against?
203162

@@ -228,7 +187,3 @@ repository, we suggest doing some cleanup of these branches.
228187
```console
229188
$ git push {username} :<branchname>
230189
```
231-
232-
## Conduct
233-
234-
Please see our [CONDUCT.md](CONDUCT.md) to understand expected behavior when interacting with others in the project.

docs/ISSUE_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
- [ ] I was not able to find an [open](https://github.com/zendframework/zend-expressive/issues?q=is%3Aopen) or [closed](https://github.com/zendframework/zend-expressive/issues?q=is%3Aclosed) issue matching what I'm seeing.
2+
- [ ] This is not a question. (Questions should be asked on [slack](https://zendframework.slack.com/) ([Signup for Slack here](https://zendframework-slack.herokuapp.com/)) or our [forums](https://discourse.zendframework.com/).)
3+
4+
Provide a narrative description of what you are trying to accomplish.
5+
6+
### Code to reproduce the issue
7+
8+
<!-- Please provide the minimum code necessary to recreate the issue -->
9+
10+
```php
11+
```
12+
13+
### Expected results
14+
15+
<!-- What do you think should have happened? -->
16+
17+
### Actual results
18+
19+
<!-- What did you actually observe? -->

0 commit comments

Comments
 (0)