You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
Both listeners use the MvcEvent::EVENT_BOOTSTRAP constant. If you want to use the ModuleManager standalone, for example within a Console application based on https://github.com/zfcampus/zf-console, you need to install Zend\Mvc and all of its dependencies.
It would be quite helpful if this hard dependency could be removed though I have no idea how to do this.
The text was updated successfully, but these errors were encountered:
I looked into it again and thought that I found a solution. We could use the ListenerOptions to inject the MvcEvent::EVENT_BOOTSTRAP constant and use this constant within the two listeners. But that would mean to add the constant to Zend\ModuleManager\Listener\ListenerOptions somehow which does not really solve the issue.
The
Zend\ModuleManager
has a hard dependency onZend\Mvc
within these two listeners:Zend\ModuleManager\Listener\OnBootstrapListener
Zend\ModuleManager\Listener\LocatorRegistrationListener
Both listeners use the
MvcEvent::EVENT_BOOTSTRAP
constant. If you want to use theModuleManager
standalone, for example within a Console application based on https://github.com/zfcampus/zf-console, you need to installZend\Mvc
and all of its dependencies.It would be quite helpful if this hard dependency could be removed though I have no idea how to do this.
The text was updated successfully, but these errors were encountered: