How to use InputFilterManager to construct custom InputFilters in Zf2
ZF2 documentation says following on defult services documentation;
I have a custom zf2 inputfilter class and i’m adding filters and validators inside init() method like following;
Also i added following key to my module.config.php
My question is, how can i construct my GlassFilter using InputFilterManager? Is this a correct approach? I found this thread but i want to understand relation between custom InputFilters and InputFilterManager.
Ok, after spending 3 bloody hours (thanks to incredible(!) documentation) I figured it out. I’m writing my solution as an answer, hopefully it will help others who want to write their custom inputfilters.