zendframework/zf2 — pull request #3258 by bakura10 (2012-12-19 22:02:19+00:00)
Title: Allow input to have custom options

This PR addresses this problem: https://github.com/zendframework/zf2/issues/3216#issuecomment-11350772

It mimics how Form element deals with options. It may not be the best way (the problem is... what is options or what is not ? is "required" an options ? This is something we may think a little bit, as the same problem occurs in Zend\Form... it's not always obvious why some properties are options and some are not, anyway, this is just a side note...).

Note that InputFilter would need some love, the factory class has some very large functions. I'll try to clean it up a little bit next time.