Maks3w
Maks3w
Module could not be instantiated because it could implement a constructor with required arguments.
Fallback feature and merge method exists since a long time and nobody appreciate this before. My conclusion any change in the current behavior introduces a BC break.
Related to https://github.com/zendframework/zf2/issues/7440
One possible option is to add an argument to `getValues()` for to return all inputs or only the inputs with data set.
Another option is add a new method for return only the fields with data (method name is more expressive rather than arguments values).
Inject a validator in the chain make difficult reset the input state for to validate different values or transititions set not set
Because the validator does not validate the input value (https://github.com/zendframework/zend-inputfilter/pull/62/files#diff-5e41c64803af5c0ad8ad84c3e25c834cR412) I didn't resolve how to make to replace the whole required funcionallity with the validator. This is needed too https://github.com/zendframework/zend-inputfilter/blob/master/src/BaseInputFilter.php#L253
IIRC every input is present in $context with the default value of null.
Also rely on $context makes the input dependant of InputFilter implementation and can't be used standalone.
Even if looking in $context is needed to know what input name to search.