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

Commit eb089eb

Browse files
committed
Merging develop to master in preparation for 3.0.0 release
2 parents fdbb902 + c02d5f8 commit eb089eb

File tree

238 files changed

+12187
-5569
lines changed

Some content is hidden

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

238 files changed

+12187
-5569
lines changed

.docheader

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/**
22
* @see https://github.com/zendframework/zend-expressive for the canonical source repository
3-
* @copyright Copyright (c) %regexp:(20\d{2}-)?20\d{2}% Zend Technologies USA Inc. (http://www.zend.com)
3+
* @copyright Copyright (c) %regexp:(20\d{2}-)?20\d{2}% Zend Technologies USA Inc. (https://www.zend.com)
44
* @license https://github.com/zendframework/zend-expressive/blob/master/LICENSE.md New BSD License
55
*/
6+
7+
declare(strict_types=1);

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
/docs/ export-ignore
88
/mkdocs.yml export-ignore
99
/phpcs.xml export-ignore
10+
/phpstan.neon export-ignore
1011
/phpunit.xml.dist export-ignore
1112
/test/ export-ignore

.travis.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,6 @@ env:
1313

1414
matrix:
1515
include:
16-
- php: 5.6
17-
env:
18-
- DEPS=lowest
19-
- LEGACY_DEPS="phpunit/phpunit malukenho/docheader"
20-
- php: 5.6
21-
env:
22-
- DEPS=locked
23-
- LEGACY_DEPS="phpunit/phpunit malukenho/docheader"
24-
- php: 5.6
25-
env:
26-
- DEPS=latest
27-
- LEGACY_DEPS="phpunit/phpunit malukenho/docheader"
28-
- php: 7
29-
env:
30-
- DEPS=lowest
31-
- php: 7
32-
env:
33-
- DEPS=locked
34-
- LEGACY_DEPS="phpunit/phpunit symfony/console symfony/debug symfony/finder"
35-
- php: 7
36-
env:
37-
- DEPS=latest
3816
- php: 7.1
3917
env:
4018
- DEPS=lowest
@@ -52,6 +30,7 @@ matrix:
5230
- php: 7.2
5331
env:
5432
- DEPS=locked
33+
- PHPSTAN_CHECK=true
5534
- php: 7.2
5635
env:
5736
- DEPS=latest
@@ -60,19 +39,18 @@ before_install:
6039
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
6140

6241
install:
63-
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
64-
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
42+
- travis_retry composer install $COMPOSER_ARGS
6543
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
6644
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
6745
- 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
6946
- stty cols 120 && composer show
7047
- cat phpunit.xml.dist
7148

7249
script:
7350
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
7451
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
7552
- if [[ $CS_CHECK == 'true' ]]; then composer license-check ; fi
53+
- if [[ $PHPSTAN_CHECK == 'true' ]]; then composer phpstan ; fi
7654

7755
after_script:
7856
- if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/php-coveralls -v ; fi

CHANGELOG.md

Lines changed: 309 additions & 0 deletions
Large diffs are not rendered by default.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015-2017, Zend Technologies USA, Inc.
1+
Copyright (c) 2015-2018, Zend Technologies USA, Inc.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification,

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ can recommend the following implementations:
7373

7474
- [zend-servicemanager](https://github.com/zendframework/zend-servicemanager):
7575
`composer require zendframework/zend-servicemanager`
76-
- [pimple-container-interop](https://github.com/xtreamwayz/pimple-container-interop):
77-
`composer require xtreamwayz/pimple-container-interop`
78-
- [Aura.Di](https://github.com/auraphp/Aura.Di):
79-
`composer require aura/di`
76+
- [Pimple](https://github.com/silexphp/Pimple) (see [docs](docs/book/features/container/pimple.md) for more details):
77+
`composer require zendframework/zend-pimple-config`
78+
- [Aura.Di](https://github.com/auraphp/Aura.Di) (see [docs](docs/book/features/container/aura-di.md) for more details):
79+
`composer require zendframework/zend-auradi-config`
8080

8181
Additionally, you may optionally want to install a template renderer
8282
implementation, and/or an error handling integration. These are covered in the

bin/expressive-tooling

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
* Script for migrating configuration-driven pipelines/routes to programmatic usage.
55
*
66
* @see https://github.com/zendframework/zend-expressive for the canonical source repository
7-
* @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
7+
* @copyright Copyright (c) 2016-2017 Zend Technologies USA Inc. (https://www.zend.com)
88
* @license https://github.com/zendframework/zend-expressive/blob/master/LICENSE.md New BSD License
99
*/
1010

11+
declare(strict_types=1);
12+
1113
namespace Zend\Expressive;
1214

1315
if (false === ($paths = getenv('PATH'))) {

composer.json

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"name": "zendframework/zend-expressive",
3-
"description": "PSR-7 Middleware Microframework based on Stratigility",
3+
"description": "PSR-15 Middleware Microframework",
44
"license": "BSD-3-Clause",
55
"keywords": [
66
"http",
77
"middleware",
88
"psr",
99
"psr-7",
1010
"psr-11",
11+
"psr-15",
12+
"expressive",
1113
"zf",
1214
"zendframework",
1315
"zend-expressive"
@@ -21,58 +23,63 @@
2123
"forum": "https://discourse.zendframework.com/c/questions/expressive"
2224
},
2325
"require": {
24-
"php": "^5.6 || ^7.0",
26+
"php": "^7.1",
2527
"fig/http-message-util": "^1.1.2",
26-
"http-interop/http-middleware": "^0.4.1",
2728
"psr/container": "^1.0",
2829
"psr/http-message": "^1.0.1",
29-
"zendframework/zend-diactoros": "^1.3.10",
30-
"zendframework/zend-expressive-router": "^2.4.1",
31-
"zendframework/zend-expressive-template": "^1.0.4",
32-
"zendframework/zend-stratigility": "^2.2.0"
30+
"psr/http-server-middleware": "^1.0",
31+
"zendframework/zend-expressive-router": "^3.0",
32+
"zendframework/zend-expressive-template": "^2.0",
33+
"zendframework/zend-httphandlerrunner": "^1.0.1",
34+
"zendframework/zend-stratigility": "^3.0"
3335
},
3436
"require-dev": {
35-
"filp/whoops": "^2.1.6 || ^1.1.10",
36-
"malukenho/docheader": "^0.1.5",
37+
"filp/whoops": "^1.1.10 || ^2.1.13",
38+
"malukenho/docheader": "^0.1.6",
3739
"mockery/mockery": "^1.0",
38-
"phpunit/phpunit": "^5.7.23 || ^6.4.3",
40+
"phpstan/phpstan": "^0.9.2",
41+
"phpstan/phpstan-strict-rules": "^0.9",
42+
"phpunit/phpunit": "^7.0.1",
3943
"zendframework/zend-coding-standard": "~1.0.0",
40-
"zendframework/zend-expressive-aurarouter": "^2.2",
41-
"zendframework/zend-expressive-fastroute": "^2.2",
42-
"zendframework/zend-expressive-zendrouter": "^2.2",
43-
"zendframework/zend-servicemanager": "^3.3 || ^2.7.8"
44+
"zendframework/zend-diactoros": "^1.7.1",
45+
"zendframework/zend-expressive-aurarouter": "^3.0",
46+
"zendframework/zend-expressive-fastroute": "^3.0",
47+
"zendframework/zend-expressive-zendrouter": "^3.0",
48+
"zendframework/zend-servicemanager": "^2.7.8 || ^3.3"
4449
},
4550
"conflict": {
46-
"container-interop/container-interop": "<1.2.0"
51+
"container-interop/container-interop": "<1.2.0",
52+
"zendframework/zend-diactoros": "<1.7.1"
4753
},
4854
"suggest": {
4955
"filp/whoops": "^2.1 to use the Whoops error handler",
56+
"psr/http-message-implementation": "Please install a psr/http-message-implementation to consume Expressive; e.g., zendframework/zend-diactoros",
57+
"zendframework/zend-auradi-config": "^1.0 to use Aura.Di dependency injection container",
5058
"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",
59+
"zendframework/zend-expressive-tooling": "^1.0 for migration and development tools; require it with the --dev flag",
60+
"zendframework/zend-pimple-config": "^1.0 to use Pimple for dependency injection container",
5461
"zendframework/zend-servicemanager": "^3.3 to use zend-servicemanager for dependency injection"
5562
},
5663
"autoload": {
64+
"files": [
65+
"src/constants.php"
66+
],
5767
"psr-4": {
5868
"Zend\\Expressive\\": "src/"
5969
}
6070
},
6171
"autoload-dev": {
6272
"psr-4": {
6373
"ZendTest\\Expressive\\": "test/"
64-
},
65-
"files": [
66-
"test/class_exists.php"
67-
]
74+
}
6875
},
6976
"config": {
7077
"sort-packages": true
7178
},
7279
"extra": {
7380
"branch-alias": {
74-
"dev-master": "2.2.x-dev",
75-
"dev-develop": "3.0.x-dev"
81+
"dev-master": "3.0.x-dev",
82+
"dev-develop": "3.1.x-dev"
7683
},
7784
"zf": {
7885
"config-provider": "Zend\\Expressive\\ConfigProvider"
@@ -89,6 +96,7 @@
8996
],
9097
"cs-check": "phpcs",
9198
"cs-fix": "phpcbf",
99+
"phpstan": "phpstan analyze -l max -c phpstan.neon ./src",
92100
"test": "phpunit --colors=always",
93101
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
94102
"license-check": "docheader check src/ test/"

0 commit comments

Comments
 (0)