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

Commit 661e3cd

Browse files
committed
Merge branch 'feature/30' into develop
Close #30
2 parents c87bd9c + 230556b commit 661e3cd

19 files changed

+734
-165
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: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,31 @@ All notable changes to this project will be documented in this file, in reverse
66

77
### Added
88

9-
- Nothing.
9+
- [#30](https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/30)
10+
adds support for zend-expressive-router 2.0.
11+
12+
- [#30](https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/30)
13+
adds support for zend-expressive-helpers 2.2 and 3.0.
14+
15+
- [#30](https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/30)
16+
adds new arguments to the `url()` helper:
17+
18+
```php
19+
echo $this->url(
20+
$routeName, // (optional) string route for which to generate URI; uses matched when absent
21+
$routeParams, // (optional) array route parameter substitutions; uses matched when absent
22+
$queryParams, // (optional) array query string arguments to include
23+
$fragment, // (optional) string URI fragment to include
24+
$options, // (optional) array of router options. The key `router` can
25+
// contain options to pass to the router; the key
26+
// `reuse_result_params` can be used to disable re-use of
27+
// matched routing parameters.
28+
);
29+
```
30+
31+
If using zend-expressive-router versions prior to 2.0 and/or
32+
zend-expressive-helpers versions prior to 3.0, arguments after `$routeParams`
33+
will be ignored.
1034

1135
### Changed
1236

composer.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,19 @@
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",
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",
2627
"zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
2728
"zendframework/zend-view": "^2.8.1"
2829
},
2930
"require-dev": {
30-
"phpunit/phpunit": "^4.7",
31-
"zendframework/zend-coding-standard": "~1.0.0"
31+
"phpunit/phpunit": "^5.7",
32+
"zendframework/zend-coding-standard": "~1.0.0",
33+
"malukenho/docheader": "^0.1.5"
3234
},
3335
"autoload": {
3436
"psr-4": {
@@ -42,11 +44,13 @@
4244
},
4345
"scripts": {
4446
"check": [
47+
"@license-check",
4548
"@cs",
4649
"@test"
4750
],
4851
"cs": "phpcs",
4952
"cs-fix": "phpcbf",
50-
"test": "phpunit"
53+
"license-check": "docheader check src/ test/",
54+
"test": "phpunit --colors=always"
5155
}
5256
}

0 commit comments

Comments
 (0)