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

Commit b75e0c1

Browse files
committed
Merging develop to master in preparation for 2.9.0 release
2 parents 3eed53e + bc45c5e commit b75e0c1

File tree

85 files changed

+1427
-492
lines changed

Some content is hidden

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

85 files changed

+1427
-492
lines changed

.travis.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ cache:
1515

1616
env:
1717
global:
18-
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
18+
- COMPOSER_ARGS="--no-interaction"
19+
- COVERAGE_DEPS="satooshi/php-coveralls"
20+
- LEGACY_DEPS="phpunit/phpunit"
1921
- LATEST_DEPS="zendframework/zend-mvc-plugin-flashmessenger zendframework/zend-mvc-i18n zendframework/zend-mvc-console"
2022
- SITE_URL=https://zendframework.github.io/zend-view
2123
- GH_USER_NAME="Matthew Weier O'Phinney"
@@ -25,16 +27,6 @@ env:
2527

2628
matrix:
2729
include:
28-
- php: 5.5
29-
env:
30-
- DEPS=lowest
31-
- php: 5.5
32-
env:
33-
- CS_CHECK=true
34-
- DEPS=locked
35-
- php: 5.5
36-
env:
37-
- DEPS=latest
3830
- php: 5.6
3931
env:
4032
- DEPS=lowest
@@ -56,6 +48,15 @@ matrix:
5648
- php: 7
5749
env:
5850
- DEPS=latest
51+
- php: 7.1
52+
env:
53+
- DEPS=lowest
54+
- php: 7.1
55+
env:
56+
- DEPS=locked
57+
- php: 7.1
58+
env:
59+
- DEPS=latest
5960
- php: hhvm
6061
env:
6162
- DEPS=lowest
@@ -77,11 +78,12 @@ before_install:
7778
- composer self-update
7879

7980
install:
80-
- travis_retry composer install $COMPOSER_ARGS
81+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
82+
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
8183
- if [[ $DEPS == 'latest' ]]; then travis_retry composer require --dev --no-update $COMPOSER_ARGS $LATEST_DEPS ; fi
8284
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
8385
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
84-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
86+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
8587
- composer show --installed
8688

8789
script:

CHANGELOG.md

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

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

5+
## 2.9.0 - TBD
6+
7+
### Added
8+
9+
- [#89](https://github.com/zendframework/zend-view/pull/89) updates the
10+
`HeadScript` and `InlineScript` view helpers to whitelist the `id` attribute
11+
as an optional attribute.
12+
13+
- [#96](https://github.com/zendframework/zend-view/pull/96) updates the
14+
`HeadScript`, `HeadLink`, and `InlineScript` view helpers to whitelist the
15+
`crossorigin` and `integrity` attributes as optional attributes.
16+
17+
- [#64](https://github.com/zendframework/zend-view/pull/64) adds a new `Asset`
18+
view helper. This helper uses the following configuration to map a named asset
19+
to the actual file to serve:
20+
21+
```php
22+
'view_helper_config' => [
23+
'asset' => [
24+
'resource_map' => [
25+
'css/style.css' => 'css/style-3a97ff4ee3.css',
26+
'js/vendor.js' => 'js/vendor-a507086eba.js',
27+
],
28+
],
29+
],
30+
```
31+
32+
This can also be automated via tools such as gulp-rev and grunt-rev by using
33+
the `rev-manifest.json` each creates directly within your configuration:
34+
35+
```php
36+
'view_helper_config' => [
37+
'asset' => [
38+
'resource_map' => json_decode(file_get_contents('path/to/rev-manifest.json'), true),
39+
],
40+
],
41+
```
42+
43+
The benefit of this approach is that it allows your view scripts to reference
44+
a static asset name, while integrating with your JS and CSS build tools.
45+
46+
### Deprecated
47+
48+
- Nothing.
49+
50+
### Removed
51+
52+
- [#114](https://github.com/zendframework/zend-view/pull/114) removes support
53+
for PHP 5.5.
54+
55+
### Fixed
56+
57+
- [#110](https://github.com/zendframework/zend-view/pull/110) provides a fix
58+
for the navigation helpers to ensure that usage of either the `default` or
59+
`navigation` containers (documentation specified `default`, but usage only
60+
allowed `navigation` previously). When `default` is specified, the
61+
`Zend\Navigation\Navigation` service will be used for the container; if
62+
`navigation` is used, that service will be pulled instead (which is usually an
63+
alias for the `Zend\Navigation\Navigation` service anyways).
64+
565
## 2.8.2 - 2017-03-20
666

767
### Added

composer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
1313
}
1414
},
1515
"require": {
16-
"php": "^5.5 || ^7.0",
16+
"php": "^5.6 || ^7.0",
1717
"zendframework/zend-eventmanager": "^2.6.2 || ^3.0",
1818
"zendframework/zend-loader": "^2.5",
1919
"zendframework/zend-stdlib": "^2.7 || ^3.0"
2020
},
2121
"require-dev": {
22+
"phpunit/phpunit": "^5.7.15 || ^6.0.8",
2223
"zendframework/zend-authentication": "^2.5",
2324
"zendframework/zend-cache": "^2.6.1",
25+
"zendframework/zend-coding-standard": "~1.0.0",
2426
"zendframework/zend-config": "^2.6",
2527
"zendframework/zend-console": "^2.6",
2628
"zendframework/zend-escaper": "^2.5",
@@ -39,9 +41,7 @@
3941
"zendframework/zend-serializer": "^2.6.1",
4042
"zendframework/zend-session": "^2.6.2",
4143
"zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
42-
"zendframework/zend-uri": "^2.5",
43-
"phpunit/phpunit": "^4.6",
44-
"zendframework/zend-coding-standard": "~1.0.0"
44+
"zendframework/zend-uri": "^2.5"
4545
},
4646
"suggest": {
4747
"zendframework/zend-authentication": "Zend\\Authentication component",
@@ -60,6 +60,9 @@
6060
},
6161
"minimum-stability": "dev",
6262
"prefer-stable": true,
63+
"config": {
64+
"sort-packages": "true"
65+
},
6366
"extra": {
6467
"branch-alias": {
6568
"dev-master": "2.8-dev",

0 commit comments

Comments
 (0)