-
Notifications
You must be signed in to change notification settings - Fork 62
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' => [],
]
],
]; |
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
|
With interop-config factories for specific EM instances can easily be created. Just provide a Just my 2c |
This repository has been closed and moved to laminas/laminas-eventmanager; a new issue has been opened at laminas/laminas-eventmanager#9. |
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...
The text was updated successfully, but these errors were encountered: