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

zend-inputfilter 2.9.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 17 Dec 21:30
· 107 commits to master since this release

Added

  • #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 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.