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

Commit d2a4cf9

Browse files
author
gabbydgab
committed
Merge remote-tracking branch 'upstream/develop' into develop
2 parents 11dabc7 + ffd2184 commit d2a4cf9

21 files changed

+1320
-567
lines changed

.docheader

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

.travis.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@ env:
1414
matrix:
1515
fast_finish: true
1616
include:
17-
- php: 5.5
18-
env:
19-
- DEPS=lowest
20-
- php: 5.5
21-
env:
22-
- DEPS=locked
23-
- php: 5.5
24-
env:
25-
- DEPS=latest
2617
- php: 5.6
2718
env:
2819
- DEPS=lowest
@@ -42,6 +33,15 @@ matrix:
4233
- php: 7
4334
env:
4435
- DEPS=latest
36+
- php: 7.1
37+
env:
38+
- DEPS=lowest
39+
- php: 7.1
40+
env:
41+
- DEPS=locked
42+
- php: 7.1
43+
env:
44+
- DEPS=latest
4545
- php: hhvm
4646
env:
4747
- DEPS=lowest
@@ -66,6 +66,7 @@ install:
6666
script:
6767
- composer test
6868
- if [[ $CHECK_CS == 'true' ]]; then composer cs ; fi
69+
- if [[ $CHECK_CS == 'true' ]]; then composer license-check ; fi
6970

7071
notifications:
7172
email: true

CHANGELOG.md

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

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

5-
## 1.2.0 - TBD
5+
## 1.3.0 - TBD
66

77
### Added
88

@@ -20,7 +20,7 @@ All notable changes to this project will be documented in this file, in reverse
2020

2121
- Nothing.
2222

23-
## 1.1.1 - TBD
23+
## 1.2.2 - TBD
2424

2525
### Added
2626

@@ -38,6 +38,85 @@ All notable changes to this project will be documented in this file, in reverse
3838

3939
- Nothing.
4040

41+
## 1.2.1 - 2017-01-12
42+
43+
### Added
44+
45+
- Nothing.
46+
47+
### Deprecated
48+
49+
- Nothing.
50+
51+
### Removed
52+
53+
- Nothing.
54+
55+
### Fixed
56+
57+
- [#33](https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/33)
58+
fixes the signature of the `UrlHelper` to make the default value of
59+
`$fragmentIdentifer` a `null` instead of `''`; this fixes an issue whereby
60+
missing fragments led to exceptions thrown by zend-expressive-helpers.
61+
62+
## 1.2.0 - 2017-01-11
63+
64+
### Added
65+
66+
- [#30](https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/30)
67+
adds support for zend-expressive-router 2.0.
68+
69+
- [#30](https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/30)
70+
adds support for zend-expressive-helpers 2.2 and 3.0.
71+
72+
- [#30](https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/30)
73+
adds new arguments to the `url()` helper:
74+
75+
```php
76+
echo $this->url(
77+
$routeName, // (optional) string route for which to generate URI; uses matched when absent
78+
$routeParams, // (optional) array route parameter substitutions; uses matched when absent
79+
$queryParams, // (optional) array query string arguments to include
80+
$fragment, // (optional) string URI fragment to include
81+
$options, // (optional) array of router options. The key `router` can
82+
// contain options to pass to the router; the key
83+
// `reuse_result_params` can be used to disable re-use of
84+
// matched routing parameters.
85+
);
86+
```
87+
88+
If using zend-expressive-router versions prior to 2.0 and/or
89+
zend-expressive-helpers versions prior to 3.0, arguments after `$routeParams`
90+
will be ignored.
91+
92+
### Changed
93+
94+
- [#26](https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/26)
95+
updated the zend-view dependency to 2.8.1+.
96+
97+
### Deprecated
98+
99+
- Nothing.
100+
101+
### Removed
102+
103+
- [#26](https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/26)
104+
removes the dependencies for the zend-i18n and zend-filter packages, as they
105+
are no longer required by the minimum version of zend-view supported.
106+
107+
If you depended on features of these, you may need to re-add them to your
108+
application:
109+
110+
```bash
111+
$ composer require zendframework/zend-filter zendframework/zend-i18n
112+
```
113+
114+
- This release removes support for PHP 5.5.
115+
116+
### Fixed
117+
118+
- Nothing.
119+
41120
## 1.1.0 - 2016-03-23
42121

43122
### Added

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,6 @@ To use view helpers, the `ZendViewRendererFactory`:
3131
- a `view_helpers` sub-key; which
3232
- follows standard zend-servicemanager configuration.
3333

34-
To use the `UrlHelper` provided in this package, ensure that you register its
35-
factory in that configuration:
36-
37-
```php
38-
use Zend\Expressive\ZendView\UrlHelperFactory;
39-
40-
return [
41-
'view_helpers' => [
42-
'factories' => [
43-
'url' => UrlHelperFactory::class,
44-
],
45-
],
46-
];
47-
```
48-
4934
## Documentation
5035

5136
See the [zend-expressive](https://github.com/zendframework/zend-expressive/blob/master/doc/book)

composer.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@
1313
],
1414
"extra": {
1515
"branch-alias": {
16-
"dev-master": "1.1-dev",
17-
"dev-develop": "1.2-dev"
16+
"dev-master": "1.2-dev",
17+
"dev-develop": "1.3-dev"
1818
}
1919
},
2020
"require": {
21-
"php": "^5.5 || ^7.0",
21+
"php": "^5.6 || ^7.0",
2222
"container-interop/container-interop": "^1.1",
2323
"psr/http-message": "^1.0",
24-
"zendframework/zend-expressive-helpers": "^1.1 || ^2.0",
25-
"zendframework/zend-expressive-template": "^1.0.1",
26-
"zendframework/zend-filter": "^2.6.1",
27-
"zendframework/zend-i18n": "^2.6",
24+
"zendframework/zend-expressive-helpers": "^1.1 || ^2.2 || ^3.0",
25+
"zendframework/zend-expressive-router": "^1.3.2 || ^2.0",
26+
"zendframework/zend-expressive-template": "^1.0.4",
2827
"zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
29-
"zendframework/zend-view": "^2.6.5"
28+
"zendframework/zend-view": "^2.8.1"
3029
},
3130
"require-dev": {
32-
"phpunit/phpunit": "^4.7",
33-
"squizlabs/php_codesniffer": "^2.3"
31+
"phpunit/phpunit": "^5.7",
32+
"zendframework/zend-coding-standard": "~1.0.0",
33+
"malukenho/docheader": "^0.1.5"
3434
},
3535
"autoload": {
3636
"psr-4": {
@@ -44,11 +44,13 @@
4444
},
4545
"scripts": {
4646
"check": [
47+
"@license-check",
4748
"@cs",
4849
"@test"
4950
],
5051
"cs": "phpcs",
5152
"cs-fix": "phpcbf",
52-
"test": "phpunit"
53+
"license-check": "docheader check src/ test/",
54+
"test": "phpunit --colors=always"
5355
}
5456
}

0 commit comments

Comments
 (0)