Closed mkroeders closed 6 years ago
It's already there. Please look at the suggest section in the Composer file: https://github.com/zendframework/zend-inputfilter/blob/9569f7e18122d57b66c95ff2f02472937f26db46/composer.json#L26-L28
Btw. sorry for the late response.
I think this issue is not invalid. Because it's not a sugggest. You have to install servicemanager to use inputfilter
Direct dependency was introduced in #67
@Xerkus, imo @Zebercet is correct. While it is introduced as a direct dependency in #67, zend-inputfilter/composer.json only suggests it. To me that's incorrect functionality. zend-servicemanager should be moved to be a core requirement.
I used the package yesterday for the first time and got this strange error ... so after a quick google-search I found this thread and now I know that I need to add "zend-servicemanager", but it isn't intuitive :/
When you run
zendframework/zend-inputfilter
as a stand alone library you getClass Zend\ServiceManager\AbstractPluginManager not found
with the following codeThis is due to the fact of
\Zend\InputFilter\Input
line 500, where the plugin chain is used. Which in turn uses theValidatorPluginManager
, which extends theZend\ServiceManager\AbstractPluginManager
. This class is not loaded because it is not part of the dependency.To fix this issue
zendframework/zend-servicemanager
needs to be a dependency, and not dev only.