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

Commit c58cc9d

Browse files
committed
Merge branch 'hotfix/261'
Close #261
2 parents 56edab9 + 95b0158 commit c58cc9d

29 files changed

+189
-168
lines changed

.gitattributes

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
/doc export-ignore
2-
/test export-ignore
3-
/vendor export-ignore
4-
.coveralls.yml export-ignore
5-
.gitattributes export-ignore
6-
.gitignore export-ignore
7-
.travis.yml export-ignore
8-
.php_cs export-ignore
9-
phpunit.xml.dist export-ignore
1+
/.coveralls.yml export-ignore
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/.travis.yml export-ignore
5+
/composer.lock export-ignore
6+
/docs/ export-ignore
7+
/mkdocs.yml export-ignore
8+
/phpcs.xml export-ignore
9+
/phpunit.xml.dist export-ignore
10+
/test/ export-ignore

.gitignore

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
.buildpath
2-
.DS_Store
3-
.idea
4-
.project
5-
.settings/
6-
.*.sw*
7-
.*.un~
8-
nbproject
9-
doc/html/
10-
tmp/
11-
zf-mkdoc-theme/
12-
13-
clover.xml
14-
coveralls-upload.json
15-
phpunit.xml
16-
vendor
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: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ env:
1010
global:
1111
- COMPOSER_ARGS="--no-interaction"
1212
- COVERAGE_DEPS="satooshi/php-coveralls"
13-
- LEGACY_DEPS="phpunit/phpunit"
1413

1514
matrix:
1615
include:
@@ -20,6 +19,7 @@ matrix:
2019
- php: 5.6
2120
env:
2221
- DEPS=locked
22+
- LEGACY_DEPS="phpunit/phpunit"
2323
- php: 5.6
2424
env:
2525
- DEPS=latest
@@ -29,8 +29,7 @@ matrix:
2929
- php: 7
3030
env:
3131
- DEPS=locked
32-
- CS_CHECK=true
33-
- TEST_COVERAGE=true
32+
- LEGACY_DEPS="phpunit/phpunit"
3433
- php: 7
3534
env:
3635
- DEPS=latest
@@ -40,6 +39,8 @@ matrix:
4039
- php: 7.1
4140
env:
4241
- DEPS=locked
42+
- CS_CHECK=true
43+
- TEST_COVERAGE=true
4344
- php: 7.1
4445
env:
4546
- DEPS=latest
@@ -52,16 +53,13 @@ matrix:
5253
- php: 7.2
5354
env:
5455
- DEPS=latest
55-
allow_failures:
56-
- php: 7.2
5756

5857
before_install:
5958
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
60-
- travis_retry composer self-update
6159

6260
install:
6361
- 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
62+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
6563
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
6664
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
6765
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi

LICENSE.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
Copyright (c) 2005-2015, Zend Technologies USA, Inc.
2-
1+
Copyright (c) 2005-2017, Zend Technologies USA, Inc.
32
All rights reserved.
43

54
Redistribution and use in source and binary forms, with or without modification,
65
are permitted provided that the following conditions are met:
76

8-
- Redistributions of source code must retain the above copyright notice,
9-
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.
109

11-
- Redistributions in binary form must reproduce the above copyright notice,
12-
this list of conditions and the following disclaimer in the documentation
13-
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.
1413

1514
- Neither the name of Zend Technologies USA, Inc. nor the names of its
1615
contributors may be used to endorse or promote products derived from this

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# zend-mvc
22

33
[![Build Status](https://secure.travis-ci.org/zendframework/zend-mvc.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-mvc)
4-
[![Coverage Status](https://coveralls.io/repos/zendframework/zend-mvc/badge.svg?branch=master)](https://coveralls.io/r/zendframework/zend-mvc?branch=master)
4+
[![Coverage Status](https://coveralls.io/repos/github/zendframework/zend-mvc/badge.svg?branch=master)](https://coveralls.io/github/zendframework/zend-mvc?branch=master)
55

66
`Zend\Mvc` is a brand new MVC implementation designed from the ground up for
77
Zend Framework 2, focusing on performance and flexibility.
@@ -21,4 +21,4 @@ The MVC layer is built on top of the following components:
2121

2222

2323
- File issues at https://github.com/zendframework/zend-mvc/issues
24-
- Documentation is at https://zendframework.github.io/zend-mvc/
24+
- Documentation is at https://docs.zendframework.com/zend-mvc/

composer.json

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
22
"name": "zendframework/zend-mvc",
3-
"description": " ",
3+
"description": "Zend Framework's event-driven MVC layer, including MVC Applications, Controllers, and Plugins",
44
"license": "BSD-3-Clause",
55
"keywords": [
6-
"zf2",
6+
"zf",
7+
"zendframework",
78
"mvc"
89
],
9-
"homepage": "https://github.com/zendframework/zend-mvc",
10-
"autoload": {
11-
"psr-4": {
12-
"Zend\\Mvc\\": "src/"
13-
}
10+
"support": {
11+
"docs": "https://docs.zendframework.com/zend-mvc/",
12+
"issues": "https://github.com/zendframework/zend-mvc/issues",
13+
"source": "https://github.com/zendframework/zend-mvc",
14+
"rss": "https://github.com/zendframework/zend-mvc/releases.atom",
15+
"slack": "https://zendframework-slack.herokuapp.com",
16+
"forum": "https://discourse.zendframework.com/c/questions/components"
1417
},
1518
"require": {
1619
"container-interop/container-interop": "^1.1",
@@ -44,13 +47,9 @@
4447
"zendframework/zend-servicemanager-di": "zend-servicemanager-di provides utilities for integrating zend-di and zend-servicemanager in your zend-mvc application",
4548
"zendframework/zend-stratigility": "zend-stratigility is required to use middleware pipes in the MiddlewareListener"
4649
},
47-
"config": {
48-
"sort-packages": true
49-
},
50-
"extra": {
51-
"branch-alias": {
52-
"dev-master": "3.1-dev",
53-
"dev-develop": "3.2-dev"
50+
"autoload": {
51+
"psr-4": {
52+
"Zend\\Mvc\\": "src/"
5453
}
5554
},
5655
"autoload-dev": {
@@ -61,6 +60,15 @@
6160
"test/_autoload.php"
6261
]
6362
},
63+
"config": {
64+
"sort-packages": true
65+
},
66+
"extra": {
67+
"branch-alias": {
68+
"dev-master": "3.1-dev",
69+
"dev-develop": "3.2-dev"
70+
}
71+
},
6472
"scripts": {
6573
"check": [
6674
"@cs-check",

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: 23 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -2,73 +2,43 @@
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](http://framework.zend.com/participate/contributor-guide)
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-mvc/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-mvc/issues/new).
3615

3716
## RUNNING TESTS
3817

39-
> ### Note: testing versions prior to 2.4
40-
>
41-
> This component originates with Zend Framework 2. During the lifetime of ZF2,
42-
> testing infrastructure migrated from PHPUnit 3 to PHPUnit 4. In most cases, no
43-
> changes were necessary. However, due to the migration, tests may not run on
44-
> versions < 2.4. As such, you may need to change the PHPUnit dependency if
45-
> attempting a fix on such a version.
46-
4718
To run tests:
4819

4920
- Clone the repository:
5021

5122
```console
52-
$ git clone git@github.com:zendframework/zend-mvc.git
53-
$ cd
23+
$ git clone git://github.com/zendframework/zend-mvc.git
24+
$ cd zend-mvc
5425
```
5526

5627
- Install dependencies via composer:
5728

5829
```console
59-
$ curl -sS https://getcomposer.org/installer | php --
60-
$ ./composer.phar install
30+
$ composer install
6131
```
6232

63-
If you don't have `curl` installed, you can also download `composer.phar` from https://getcomposer.org/
33+
If you don't have `composer` installed, please download it from https://getcomposer.org/download/
6434

65-
- Run the tests via `phpunit` and the provided PHPUnit config, like in this example:
35+
- Run the tests using the "test" command shipped in the `composer.json`:
6636

6737
```console
68-
$ ./vendor/bin/phpunit
38+
$ composer test
6939
```
7040

71-
You can turn on conditional tests with the phpunit.xml file.
41+
You can turn on conditional tests with the `phpunit.xml` file.
7242
To do so:
7343

7444
- Copy `phpunit.xml.dist` file to `phpunit.xml`
@@ -77,24 +47,22 @@ To do so:
7747

7848
## Running Coding Standards Checks
7949

80-
This component uses [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) for coding
81-
standards checks, and provides configuration for our selected checks.
82-
`phpcs` is installed by default via Composer.
50+
First, ensure you've installed dependencies via composer, per the previous
51+
section on running tests.
8352

84-
To run checks only:
53+
To run CS checks only:
8554

8655
```console
8756
$ composer cs-check
8857
```
8958

90-
`phpcs` also includes a tool for fixing most CS violations, `phpcbf`:
91-
59+
To attempt to automatically fix common CS issues:
9260

9361
```console
9462
$ composer cs-fix
9563
```
9664

97-
If you allow `phpcbf` to fix CS issues, please re-run the tests to ensure
65+
If the above fixes any CS issues, please re-run the tests to ensure
9866
they pass, and make sure you add and commit the changes after verification.
9967

10068
## Recommended Workflow for Contributions
@@ -103,12 +71,12 @@ Your first step is to establish a public repository from which we can
10371
pull your work into the master repository. We recommend using
10472
[GitHub](https://github.com), as that is where the component is already hosted.
10573

106-
1. Setup a [GitHub account](http://github.com/), if you haven't yet
107-
2. Fork the repository (http://github.com/zendframework/zend-mvc)
74+
1. Setup a [GitHub account](https://github.com/), if you haven't yet
75+
2. Fork the repository (https://github.com/zendframework/zend-mvc)
10876
3. Clone the canonical repository locally and enter it.
10977

11078
```console
111-
$ git clone git://github.com:zendframework/zend-mvc.git
79+
$ git clone git://github.com/zendframework/zend-mvc.git
11280
$ cd zend-mvc
11381
```
11482

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

201161
#### What branch to issue the pull request against?
202162

@@ -227,8 +187,3 @@ repository, we suggest doing some cleanup of these branches.
227187
```console
228188
$ git push {username} :<branchname>
229189
```
230-
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-mvc/issues?q=is%3Aopen) or [closed](https://github.com/zendframework/zend-mvc/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)