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

Commit c34ca7a

Browse files
committed
Merging develop to master in preparation for master release.
2 parents 799ad48 + 9b3d343 commit c34ca7a

15 files changed

+1190
-232
lines changed

CHANGELOG.md

+40
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,46 @@
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 - 2018-12-17
6+
7+
### Added
8+
9+
- [#172](https://github.com/zendframework/zend-inputfilter/pull/172) adds support for PSR-7 `UploadedFileInterface` to `Zend\InputFilter\FileInput`.
10+
It adds a new interface, `Zend\InputFilter\FileInput\FileInputDecoratorInterface`,
11+
which defines methods required for validating and filtering file uploads. It
12+
also provides two implementations of it, one for standard SAPI file uploads,
13+
and the other for PSR-7 uploads. The `FileInput` class does detection on the
14+
value being tested and decorates itself using the appropriate decorator, which
15+
then performs the work of validating and filtering the upload or uploads.
16+
17+
- [#170](https://github.com/zendframework/zend-inputfilter/pull/170) adds the ability to set a "required" message on a `CollectionInputFilter`.
18+
By default, such instances will lazy-load a `NotEmpty` validator, and use its
19+
messages to report that the collection was empty if it is marked as required.
20+
If you wish to set a different message, you have two options:
21+
22+
- provide a custom `NotEmpty` validator via the new method
23+
`setNotEmptyValidator()`.
24+
25+
- if using a factory, provide the key `required_message` as a sibling to
26+
`required`, containing the custom message. This will replace the typical
27+
`IS_EMPTY` message.
28+
29+
### Changed
30+
31+
- Nothing.
32+
33+
### Deprecated
34+
35+
- Nothing.
36+
37+
### Removed
38+
39+
- Nothing.
40+
41+
### Fixed
42+
43+
- Nothing.
44+
545
## 2.8.3 - 2018-12-13
646

747
### Added

composer.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
},
1313
"extra": {
1414
"branch-alias": {
15-
"dev-master": "2.8.x-dev",
16-
"dev-develop": "2.9.x-dev"
15+
"dev-master": "2.9.x-dev",
16+
"dev-develop": "2.10.x-dev"
1717
},
1818
"zf": {
1919
"component": "Zend\\InputFilter",
@@ -30,15 +30,19 @@
3030
},
3131
"require": {
3232
"php": "^5.6 || ^7.0",
33-
"zendframework/zend-filter": "^2.6",
33+
"zendframework/zend-filter": "^2.9.1",
34+
"zendframework/zend-servicemanager": "^2.7.10 || ^3.3.1",
3435
"zendframework/zend-stdlib": "^2.7 || ^3.0",
35-
"zendframework/zend-validator": "^2.10.1",
36-
"zendframework/zend-servicemanager": "^2.7.10 || ^3.3.1"
36+
"zendframework/zend-validator": "^2.11"
3737
},
3838
"require-dev": {
3939
"phpunit/phpunit": "^5.7.23 || ^6.4.3",
40+
"psr/http-message": "^1.0",
4041
"zendframework/zend-coding-standard": "~1.0.0"
4142
},
43+
"suggest": {
44+
"psr/http-message-implementation": "PSR-7 is required if you wish to validate PSR-7 UploadedFileInterface payloads"
45+
},
4246
"autoload": {
4347
"psr-4": {
4448
"Zend\\InputFilter\\": "src/"

0 commit comments

Comments
 (0)