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

Commit

Permalink
Merging develop to master in preparation for master release.
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Dec 17, 2018
2 parents 799ad48 + 9b3d343 commit c34ca7a
Show file tree
Hide file tree
Showing 15 changed files with 1,190 additions and 232 deletions.
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,46 @@

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

## 2.9.0 - 2018-12-17

### Added

- [#172](https://github.com/zendframework/zend-inputfilter/pull/172) adds support for PSR-7 `UploadedFileInterface` to `Zend\InputFilter\FileInput`.
It adds a new interface, `Zend\InputFilter\FileInput\FileInputDecoratorInterface`,
which defines methods required for validating and filtering file uploads. It
also provides two implementations of it, one for standard SAPI file uploads,
and the other for PSR-7 uploads. The `FileInput` class does detection on the
value being tested and decorates itself using the appropriate decorator, which
then performs the work of validating and filtering the upload or uploads.

- [#170](https://github.com/zendframework/zend-inputfilter/pull/170) adds the ability to set a "required" message on a `CollectionInputFilter`.
By default, such instances will lazy-load a `NotEmpty` validator, and use its
messages to report that the collection was empty if it is marked as required.
If you wish to set a different message, you have two options:

- provide a custom `NotEmpty` validator via the new method
`setNotEmptyValidator()`.

- if using a factory, provide the key `required_message` as a sibling to
`required`, containing the custom message. This will replace the typical
`IS_EMPTY` message.

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Nothing.

## 2.8.3 - 2018-12-13

### Added
Expand Down
14 changes: 9 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.8.x-dev",
"dev-develop": "2.9.x-dev"
"dev-master": "2.9.x-dev",
"dev-develop": "2.10.x-dev"
},
"zf": {
"component": "Zend\\InputFilter",
Expand All @@ -30,15 +30,19 @@
},
"require": {
"php": "^5.6 || ^7.0",
"zendframework/zend-filter": "^2.6",
"zendframework/zend-filter": "^2.9.1",
"zendframework/zend-servicemanager": "^2.7.10 || ^3.3.1",
"zendframework/zend-stdlib": "^2.7 || ^3.0",
"zendframework/zend-validator": "^2.10.1",
"zendframework/zend-servicemanager": "^2.7.10 || ^3.3.1"
"zendframework/zend-validator": "^2.11"
},
"require-dev": {
"phpunit/phpunit": "^5.7.23 || ^6.4.3",
"psr/http-message": "^1.0",
"zendframework/zend-coding-standard": "~1.0.0"
},
"suggest": {
"psr/http-message-implementation": "PSR-7 is required if you wish to validate PSR-7 UploadedFileInterface payloads"
},
"autoload": {
"psr-4": {
"Zend\\InputFilter\\": "src/"
Expand Down
Loading

0 comments on commit c34ca7a

Please sign in to comment.