Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

allow usage of validator and filter plugin managers in input filter factory if form manager injected #4851

Closed
wants to merge 4 commits into from

Conversation

richardjennings
Copy link
Contributor

fix for issue #4801

Allow usage of Validator and Filter plugin managers in Input Filter factory if Form Manager Aware

@samsonasik
Copy link
Contributor

please provide unit test.

@weierophinney
Copy link
Member

@richardjennings Does #4788 fix the issues you encountered as well?

@richardjennings
Copy link
Contributor Author

@weierophinney No. Inputs with an undefined type are created with a clone of the InputFilter Factory validator/filter chains which do not have access to plugin managers.

I have provided an alternative fix, setting the plugin managers on the validator/filter chains if an InputFilterManager is provided with access to a ServiceLocatorInterface instance.

…to add plugin managers to validator and filter chains
@weierophinney
Copy link
Member

@richardjennings Okay -- can I get some unit tests from you, then, please?

…nd inject validator and filter plugin managers into factory default filter and validator chains. Test setInputFilterPluginManager with and without ServiceLocator
@ghost ghost assigned weierophinney Aug 19, 2013
weierophinney added a commit that referenced this pull request Aug 19, 2013
allow usage of validator and filter plugin managers in input filter factory if form manager injected

Conflicts:
	tests/ZendTest/InputFilter/FactoryTest.php
weierophinney added a commit that referenced this pull request Aug 19, 2013
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
…sue4801

allow usage of validator and filter plugin managers in input filter factory if form manager injected

Conflicts:
	tests/ZendTest/InputFilter/FactoryTest.php
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants