zendframework / zend-validator

Validator component from Zend Framework
BSD 3-Clause "New" or "Revised" License
181 stars 136 forks source link

Ensure `validators` config is honored in non-zend-mvc contexts #168

Closed weierophinney closed 7 years ago

weierophinney commented 7 years ago

Per a forum post the validators config key is not honored currently unless the application is within a zend-mvc context. This is due to the fact that Zend\Validator\Module wires configuration for the Zend\ModuleManager\Listener\ServiceListener in order to push merged service configuration into the plugin during bootstrap; no similar logic is available when not in a zend-mvc context, however.

This patch fixes that situation by modifying the ValidatorPluginManagerFactory to do the following: