-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a factory for EVM #9
Comments
@bakura10 Please take a look at the interop-config library and the PSR config proposal. I think this could help to define a good config structure for the factory. I'm not sure, but if you want to merge listeners from another config file for the onDispatch event, should not the event name onDispatch be the array key and listener an array? But the problem with lazy listeners still exists. return [
'event_manager' => [
'onDispatch' => [
'listeners' => [],
]
],
]; Originally posted by @sandrokeil at zendframework/zend-eventmanager#9 (comment) |
The event manager may require multiple discrete instances as well, which If anything, I think we need a factory for generating a set of listeners Additionally, a factory for creating and seeding the shared event manager
Originally posted by @weierophinney at zendframework/zend-eventmanager#9 (comment) |
With interop-config factories for specific EM instances can easily be created. Just provide a Just my 2c Originally posted by @codeliner at zendframework/zend-eventmanager#9 (comment) |
Is it actuall? @weierophinney @froschdesign |
@devlubinets Yes, it's still open. There haven't been many requests for it. |
Hi,
Because of Zend\Expressive and the possible removal of module manager, it won't be possible for each "module" to attach their own listeners. Instead, everything should be handled with config files, that allow easier merging.
Starting from v3, it should have a default EventManagerFactory that would be able to read config from an interop container and create a full EVM.
It should accept a key "event_manager", read from a config service.
I'm not sure of how the config should be made so that we can support lazy, non-lazy...
Originally posted by @bakura10 at zendframework/zend-eventmanager#9
The text was updated successfully, but these errors were encountered: