Skip to content

Commit

Permalink
Allow InputInterface retrieval from InputFilterPluginManager
Browse files Browse the repository at this point in the history
  • Loading branch information
danizord committed Mar 26, 2014
1 parent c4b40c7 commit cf806a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/InputFilter/InputFilterPluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function populateFactory($inputfilter)
*/
public function validatePlugin($plugin)
{
if ($plugin instanceof InputFilterInterface) {
if ($plugin instanceof InputFilterInterface || $plugin instanceof InputInterface) {
// Hook to perform various initialization, when the inputfilter is not created through the factory
if ($plugin instanceof InitializableInterface) {
$plugin->init();
Expand Down

0 comments on commit cf806a7

Please sign in to comment.