zendframework / zend-inputfilter

InputFilter component from Zend Framework
BSD 3-Clause "New" or "Revised" License
64 stars 50 forks source link

Do not re-inject filter/validator chains of inputs pulled from plugin manager #151

Closed weierophinney closed 6 years ago

weierophinney commented 6 years ago

As reported in #8, a change in #2 now causes inputs pulled from the plugin manager within Factory::createInput() to be injected with the default filter and validator chains composed in the Factory. This can cause filter and validator chains created during construction or within the input's factory to be overwritten entirely.

This patch adds conditions to skip injection of the default filter and validator chains on inputs pulled from the input filter manager, while retaining the logic introduced in #2 to allow values in the $inputSpecification to further configure the instance.

Fixes #8.