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

Commit 4a84a31

Browse files
committed
Merging develop to master in preparation for 2.7.0
2 parents 2f9cef5 + c8d1493 commit 4a84a31

File tree

201 files changed

+10216
-5654
lines changed

Some content is hidden

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

201 files changed

+10216
-5654
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/doc export-ignore
12
/test export-ignore
23
/vendor export-ignore
34
.coveralls.yml export-ignore

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
.*.sw*
77
.*.un~
88
nbproject
9+
doc/html/
910
tmp/
11+
zf-mkdoc-theme/
1012

1113
clover.xml
1214
composer.lock

.travis.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,58 @@ branches:
1010
cache:
1111
directories:
1212
- $HOME/.composer/cache
13+
- $HOME/.local
14+
- zf-mkdoc-theme
15+
16+
env:
17+
global:
18+
- EVENT_MANAGER_VERSION="^3.0"
19+
- HYDRATOR_VERSION="^2.1"
20+
- SERVICE_MANAGER_VERSION="^3.0.3"
21+
- STDLIB_VERSION="^3.0"
22+
- SITE_URL: https://zendframework.github.io/zend-mvc
23+
- GH_USER_NAME: "Matthew Weier O'Phinney"
24+
- GH_USER_EMAIL: [email protected]
25+
- GH_REF: github.com/zendframework/zend-mvc.git
26+
- secure: "naVln9sqGUKWRbe3qlbtcw9Ink0qXmP6iU8A0IAScpuYOeGkDF9ripkCWytjJb+sZFOpjbwwV5spoaWRied1A10P6f8GRMAPJ1xEa0Pm7JE5iCoijUdiC2FJlv0Xd79ir5xAKb4mvyAGxRDgCYXVGYnszGLQYyfaTJ9hVlRQw6N3hcWWUADXxV4Z7Akp5XN6mo52ZRwAXJNmJliyDC4INC1AE2Y8hMbD4SjIetsO7VYBBiOYJhd/9ir7ETlbvt7npEil7KKZP0Y8lanTU2coKESut4b0vE9Vxq6znoK6jrV3xULuZOU6xe3Di8roIAFaR/neeX/blfuvgYCP4lM/ed+CaSD56aFIGizyP0gLB7xrNooBttFh0JV69/8Iu5G7dbZ3nw6gc0cXDvnl9aHpsInAlGbJShlJR9JY1OqxhewgNVA9cWTs2IekdY5Zz/be+elXjYIWkM+3ig6Lw41uaE4AwKp+MdQeyhp4snUIJZeXpdRYsmPDbYI3xTPFDc3bbYgypasox+jLQB0QXY5HKUrlaKdZiY6s1rMHTRnFLLybUlxbPIM1J/rMHPjs0YRgABtVPUsXpNKkY08pkk0cfvxAKTMGP7SmN3P/cSUeWvNNInCUjCnYWSqcqcp25QoIy9BTF4gKjwoCRPfIgzj3jd0qOoRkYx2HuWZVA5+q8SM="
1327

1428
matrix:
1529
fast_finish: true
1630
include:
1731
- php: 5.5
1832
env:
1933
- EXECUTE_CS_CHECK=true
34+
- php: 5.5
35+
env:
36+
- EVENT_MANAGER_VERSION="^2.6.2"
37+
- HYDRATOR_VERSION="^1.1"
38+
- SERVICE_MANAGER_VERSION="^2.7.5"
39+
- STDLIB_VERSION="^2.7.5"
2040
- php: 5.6
2141
env:
2242
- EXECUTE_TEST_COVERALLS=true
43+
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
44+
- PATH="$HOME/.local/bin:$PATH"
45+
- php: 5.6
46+
env:
47+
- EVENT_MANAGER_VERSION="^2.6.2"
48+
- HYDRATOR_VERSION="^1.1"
49+
- SERVICE_MANAGER_VERSION="^2.7.5"
50+
- STDLIB_VERSION="^2.7.5"
2351
- php: 7
52+
- php: 7
53+
env:
54+
- EVENT_MANAGER_VERSION="^2.6.2"
55+
- HYDRATOR_VERSION="^1.1"
56+
- SERVICE_MANAGER_VERSION="^2.7.5"
57+
- STDLIB_VERSION="^2.7.5"
58+
- php: hhvm
2459
- php: hhvm
60+
env:
61+
- EVENT_MANAGER_VERSION="^2.6.2"
62+
- HYDRATOR_VERSION="^1.1"
63+
- SERVICE_MANAGER_VERSION="^2.7.5"
64+
- STDLIB_VERSION="^2.7.5"
2565
allow_failures:
2666
- php: hhvm
2767

@@ -33,6 +73,7 @@ before_install:
3373
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
3474
- composer self-update
3575
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
76+
- composer require --no-update "zendframework/zend-eventmanager:$EVENT_MANAGER_VERSION" "zendframework/zend-servicemanager:$SERVICE_MANAGER_VERSION" "zendframework/zend-hydrator:$HYDRATOR_VERSION" "zendframework/zend-stdlib:$STDLIB_VERSION"
3677

3778
install:
3879
- travis_retry composer install --no-interaction --ignore-platform-reqs
@@ -41,6 +82,10 @@ script:
4182
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
4283
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
4384
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi
85+
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi
86+
87+
after_success:
88+
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
4489

4590
after_script:
4691
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi

CHANGELOG.md

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

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

5+
## 2.7.0 - TBD
6+
7+
### Added
8+
9+
- [#31](https://github.com/zendframework/zend-mvc/pull/31) adds three new
10+
optional arguments to the `Zend\Mvc\Application` constructor: an EventManager
11+
instance, a Request instance, and a Response instance.
12+
- [#36](https://github.com/zendframework/zend-mvc/pull/36) adds more than a
13+
dozen service factories, primarily to separate conditional factories into
14+
discrete factories.
15+
- [#32](https://github.com/zendframework/zend-mvc/pull/32) adds
16+
`Zend\Mvc\MiddlewareListener`, which allows dispatching PSR-7-based middleware
17+
implementing the signature `function (ServerRequestInterface $request,
18+
ResponseInterface $response)`. To dispatch such middleware, point the
19+
`middleware` "default" for a given route to a service name or callable that
20+
will resolve to the middleware:
21+
22+
```php
23+
[ 'router' => 'routes' => [
24+
'path' => [
25+
'type' => 'Literal',
26+
'options' => [
27+
'route' => '/path',
28+
'defaults' => [
29+
'middleware' => 'ServiceNameForPathMiddleware',
30+
],
31+
],
32+
],
33+
]
34+
```
35+
36+
This new listener listens at the same priority as the `DispatchListener`, but,
37+
due to being registered earlier, will invoke first; if the route match does
38+
not resolve to middleware, it will fall through to the original
39+
`DispatchListener`, allowing normal ZF2-style controller dispatch.
40+
- [#84](https://github.com/zendframework/zend-mvc/pull/84) publishes the
41+
documentation to https://zendframework.github.io/zend-mvc/
42+
43+
### Deprecated
44+
45+
- Two initializers registered by `Zend\Mvc\Service\ServiceManagerConfig` are now
46+
deprecated, and will be removed starting in version 3.0:
47+
- `ServiceManagerAwareInitializer`, which injects classes implementing
48+
`Zend\ServiceManager\ServiceManagerAwareInterface` with the service manager
49+
instance. Users should create factories for such classes that directly
50+
inject their dependencies instead.
51+
- `ServiceLocatorAwareInitializer`, which injects classes implementing
52+
`Zend\ServiceManager\ServiceLocatorAwareInterface` with the service manager
53+
instance. Users should create factories for such classes that directly
54+
inject their dependencies instead.
55+
56+
### Removed
57+
58+
- `Zend\Mvc\Controller\AbstractController` no longer directly implements
59+
`Zend\ServiceManager\ServiceLocatorAwareInterface`, but still implements the
60+
methods defined in that interface. This was done to provide
61+
forwards-compatibility, as zend-servicemanager v3 no longer defines the
62+
interface. All initializers that do `ServiceLocatorInterface` injection were
63+
updated to also inject when just the methods are present.
64+
65+
### Fixed
66+
67+
- [#31](https://github.com/zendframework/zend-mvc/pull/31) and
68+
[#76](https://github.com/zendframework/zend-mvc/pull/76) update the component
69+
to be forwards-compatible with zend-eventmanager v3.
70+
- [#36](https://github.com/zendframework/zend-mvc/pull/36),
71+
[#76](https://github.com/zendframework/zend-mvc/pull/76),
72+
[#80](https://github.com/zendframework/zend-mvc/pull/80),
73+
[#81](https://github.com/zendframework/zend-mvc/pull/81), and
74+
[#82](https://github.com/zendframework/zend-mvc/pull/82) update the component
75+
to be forwards-compatible with zend-servicemanager v3. Several changes were
76+
introduced to support this effort:
77+
- Added a `RouteInvokableFactory`, which can act as either a
78+
`FactoryInterface` or `AbstractFactoryInterface` for loading invokable route
79+
classes, including by fully qualified class name. This is registered as an
80+
abstract factory by default with the `RoutePluginManager`.
81+
- The `DispatchListener` now receives the controller manager instance at
82+
instantiation.
83+
- The `ViewManager` implementations were updated, and most functionality
84+
within separated into discrete factories.
85+
586
## 2.6.4 - TBD
687

788
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 http://framework.zend.com/manual/current/en/index.html#zend-mvc
24+
- Documentation is at https://zendframework.github.io/zend-mvc/

composer.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,33 @@
1414
},
1515
"require": {
1616
"php": "^5.5 || ^7.0",
17-
"zendframework/zend-eventmanager": "~2.5",
18-
"zendframework/zend-servicemanager": "~2.5",
19-
"zendframework/zend-hydrator": "~1.0",
20-
"zendframework/zend-form": "~2.6",
21-
"zendframework/zend-stdlib": "^2.7.5"
17+
"zendframework/zend-eventmanager": "^2.6.2 || ^3.0",
18+
"zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
19+
"zendframework/zend-hydrator": "^1.1 || ^2.1",
20+
"zendframework/zend-form": "^2.7",
21+
"zendframework/zend-stdlib": "^2.7.5 || ^3.0",
22+
"zendframework/zend-psr7bridge": "^0.2",
23+
"container-interop/container-interop": "^1.1"
2224
},
2325
"require-dev": {
24-
"zendframework/zend-authentication": "~2.5",
25-
"zendframework/zend-cache": "~2.5",
26-
"zendframework/zend-console": "~2.5",
27-
"zendframework/zend-di": "~2.5",
28-
"zendframework/zend-filter": "~2.5",
29-
"zendframework/zend-http": "~2.5",
30-
"zendframework/zend-i18n": "~2.5",
31-
"zendframework/zend-inputfilter": "~2.5",
32-
"zendframework/zend-json": "~2.5",
33-
"zendframework/zend-log": "~2.5",
34-
"zendframework/zend-modulemanager": "~2.6",
35-
"zendframework/zend-session": "~2.5",
36-
"zendframework/zend-serializer": "~2.5",
37-
"zendframework/zend-text": "~2.5",
38-
"zendframework/zend-uri": "~2.5",
39-
"zendframework/zend-validator": "~2.5",
40-
"zendframework/zend-version": "~2.5",
41-
"zendframework/zend-view": "~2.5",
26+
"zendframework/zend-authentication": "^2.5.3",
27+
"zendframework/zend-cache": "^2.6.1",
28+
"zendframework/zend-console": "^2.6",
29+
"zendframework/zend-di": "^2.6",
30+
"zendframework/zend-filter": "^2.6.1",
31+
"zendframework/zend-http": "^2.5.4",
32+
"zendframework/zend-i18n": "^2.6",
33+
"zendframework/zend-inputfilter": "^2.6",
34+
"zendframework/zend-json": "^2.6.1",
35+
"zendframework/zend-log": "^2.7.1",
36+
"zendframework/zend-modulemanager": "^2.7.1",
37+
"zendframework/zend-session": "^2.6.2",
38+
"zendframework/zend-serializer": "^2.6.1",
39+
"zendframework/zend-text": "^2.6",
40+
"zendframework/zend-uri": "^2.5",
41+
"zendframework/zend-validator": "^2.6",
42+
"zendframework/zend-version": "^2.5",
43+
"zendframework/zend-view": "^2.6.3",
4244
"fabpot/php-cs-fixer": "1.7.*",
4345
"phpunit/PHPUnit": "~4.0"
4446
},
@@ -62,8 +64,6 @@
6264
"zendframework/zend-version": "Zend\\Version component",
6365
"zendframework/zend-view": "Zend\\View component"
6466
},
65-
"minimum-stability": "dev",
66-
"prefer-stable": true,
6767
"extra": {
6868
"branch-alias": {
6969
"dev-master": "2.6-dev",

0 commit comments

Comments
 (0)