zend-inputfilter 2.9.0
Added
-
#172 adds support for PSR-7
UploadedFileInterface
toZend\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. TheFileInput
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 adds the ability to set a "required" message on a
CollectionInputFilter
.
By default, such instances will lazy-load aNotEmpty
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.