-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Is your feature request related to a problem? Please describe.
Make Workflow class automatically register given events at construction.
Describe the solution you'd like
Allow the Workflow class to receive a list of custom Events that need to be registered with it at construction time.
This is needed since you already allow handlers to be passed at construction so if some of them required custom events it will error out.
Describe alternatives you've considered
Register the custom events post instantiation and then attach the handler. But it is more "dirty".