added method to chain input filters

Needed a clean way to chain input filters together 
Fair enough, in this case the method name as merge will make more sense


On Tue, Aug 5, 2014 at 1:04 PM, Marco Pivetta <notifications@github.com>
wrote:

> In library/Zend/InputFilter/BaseInputFilter.php:
>
> > @@ -683,4 +683,18 @@ public function getInputs()
> >      {
> >          return $this->inputs;
> >      }
> > +
> > +    /**
> > +     * Chain the inputs from an InputFilter into the current one
> > +     *
> > +     * @param BaseInputFilter $inputFilter
> > +     * @return $this
> > +     */
> > +    public function chainInputFilter(BaseInputFilter $inputFilter)
> > +    {
> > +        foreach ($inputFilter->getInputs() as $name => $input) {
>
> What happens if the chained input filter is being changed afterwards?
>
> This is more like "Merge" rather than "Chain". In a chain, I'd expect
> elements to keep interacting together after the chaining has happened:
> that's not the case here.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zendframework/zf2/pull/6431/files#r15807663>.
>