zendframework / zend-inputfilter

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

ConfigProvider - registration of InputFilterAbstractServiceFactory #129

Closed vaclavvanik closed 6 years ago

vaclavvanik commented 7 years ago

As of written in docs InputFilterAbstractServiceFactory has to be registered in ConfigProvider.

Correct version of invoke is imho:

    public function __invoke()
    {
        return [
            'dependencies' => $this->getDependencyConfig(),
            'input_filters' => [
                'abstract_factories' => [
                    InputFilterAbstractServiceFactory::class,
                ],
            ],
        ];
    }
codeaid commented 6 years ago

Came to report the same issue after spending half an hour trying to understand why is nothing visible in my input_filter_specs key.