This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Class Zend\ServiceManager\AbstractPluginManager not found #119
Labels
Comments
It's already there. Please look at the suggest section in the Composer file: zend-inputfilter/composer.json Lines 26 to 28 in 9569f7e
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 |
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 :/ |
settermjd
added a commit
to settermjd/zend-inputfilter
that referenced
this issue
Jan 12, 2018
After being bitten by the bug in zendframework#119, where I couldn't use zend-inputfilter without zend-servicemanager, I'm proposing this PR, which makes zend-servicemanager a required dependency. I can't claim to understand all the reasoning for not doing so to date, but based on this experience, it makes sense to make the change.
4 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.The text was updated successfully, but these errors were encountered: