Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Add a factory for EVM #9

@bakura10

Description

@bakura10

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.

return [
   'event_manager' => [
     [
         'event_name' => 'onDispatch',
         'listener'         => function() {},
         'is_lazy'          => true
     ]
  ],

  'shared_event_manager' => [ ?? ]
];

I'm not sure of how the config should be made so that we can support lazy, non-lazy...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions