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

InputFilterPluginManager needs to allow InputInterface retrieval #6004

Closed
demichl68 opened this issue Mar 19, 2014 · 0 comments
Closed

InputFilterPluginManager needs to allow InputInterface retrieval #6004

demichl68 opened this issue Mar 19, 2014 · 0 comments
Assignees
Milestone

Comments

@demichl68
Copy link
Contributor

Let's say I have various - pre configured - Input classes which are to be built by custom factories..
Now, within my InputFilter class, I want to be able to retrieve these classes via

$this->add(
    [
        'name' => 'foo', 
        'type' => 'myFancyInput'
    ]
);

This fails due to the fact that the InputFilterPluginManager checks the requested service for InputFilterInterface implementation:

https://github.com/zendframework/zf2/blob/master/library/Zend/InputFilter/InputFilterPluginManager.php#L73-L86

IMO the InputFilterPluginManager needs another check for InputInterface, as currently the Input component does not have its own namespace and/or PluginManager

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants