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

Releases: zendframework/zend-inputfilter

zend-inputfilter 2.7.4

18 May 14:23
Compare
Choose a tag to compare

Added

  • Nothing.

Changes

  • #122 maps the Zend\InputFilter\InputFilterPluginManager service to Zend\InputFilter\InputFilterPluginManagerFactory, and adds an alias from InputFitlerPluginManager to the fully qualified class name. This change allows you to request the service using either the original short name, or the fully qualified class name.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #137 fixes how the InputFilterPluginManagerFactory factory initializes the plugin manager instance, ensuring it is injecting the relevant configuration from the config service and thus seeding it with configured input filter services. This means that the input_filters configuration will now be honored in non-zend-mvc contexts.

release-2.7.3: zend-inputfilter 2.7.3

18 Aug 18:43
Compare
Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #115 fixes retrieval of unknown fields when using a CollectionInputFilter. Previously, it returned all fields in the collection, not just the unknown fields, which was a different behavior from all other input filters. Now it will return only the unknown fields for each collection.
  • #108 fixes the InputFilterPluginManager::populateFactory() method to restore behavior from prior to the 2.7 series; specifically, previously it would inject itself as the plugin manager to input filter factories when under zend-servicemanager v2; it now will do so again.
  • #116 fixes the behavior of CollectionInputFilter::setData(). Prior to this release, it would validate whether the data represented a collection (i.e., it was an array or traversable) and whether individual items in the collection were data sets (i.e., arrays or traversables) only during isValid() and/or getUnknown() calls, raising exceptions during runtime. These should have been considered invalid arguments when the data was provided; they now are. As such, setData() now raises Zend\InputFilter\Exception\InvalidArgumentException for invalid data, ensuring that isValid() and getUnknown() only ever operate on usable collections and collection sets.
  • #118 fixes aggregation of error messages when validating collections to ensure only the error messages specific to a given datum are presented.

zend-inputfilter 2.7.2

11 Jun 19:38
Compare
Choose a tag to compare

Added

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #110 fixes an issue with InputFilterAbstractServiceFactory whereby it was not working when the provided container is not a plugin manager, but rather the application container.

zend-inputfilter 2.7.1

18 Apr 17:54
Compare
Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #104 fixes the Module::init() method to properly receive a ModuleManager instance, and not expect a ModuleEvent.

zend-inputfilter 2.7.0

07 Apr 16:15
Compare
Choose a tag to compare

Added

  • #3 updates the InputFilterAbstractServiceFactory to inject the created input filter factory with the InputFilterManager service, ensuring that the generated factory can pull named input filters and inputs from the container as needed.
  • #100 adds a number of classes, in order to better allow usage as a standalone component:
    • InputFilterPluginManagerFactory, ported from zend-mvc, allows creating and returning an InputFilterPluginManager.
    • ConfigProvider maps the InputFilterManager service to the above factory, and enables the InputFilterAbstractServiceFactory.
    • Module does the same as ConfigProvider, within a zend-mvc context, and also registers a specification with the zend-modulemanager ServiceListener to allow modules to configure the input filter plugin manager.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-inputfilter 2.6.1

07 Apr 16:00
Compare
Choose a tag to compare

Added

  • #68 adds support for using either named keys or a name element in input filter specs parsed by the InputFilterAbstractServiceFactory.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #67 and #73 fix localization of the NotEmpty validation error message (created for any required input for which a value was not provided).

zend-inputfilter 2.6.0

18 Feb 19:51
Compare
Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #86, #95, and #96 update the component to be forwards-compatible with zend-servicemanager v3.
  • #72 ArrayInput value is properly reset after BaseInputFilter::setData()