zendframework / zend-inputfilter

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

Input filter specification and merging #178

Open vaclavvanik opened 5 years ago

vaclavvanik commented 5 years ago

Now it is not possible to use input filter merging on input filters created from specification. Merging saves plenty of time when dealing with many input filters. I suppose extending Factory class to enable merging.

Specification example

$config = [
    'input_filter_specs' => [
         MyInput::class => [
             'foo' => [
             ],
        ],
         MyInput2::class => [
             'merge' => MyInput::class,
             'bar' => [
             ],
        ],
    ],
],

What is your opinion?

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-inputfilter; a new issue has been opened at https://github.com/laminas/laminas-inputfilter/issues/1.