Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

InvalidListenerException when creating multiple Events without method definition. #31

@calvinalkan

Description

@calvinalkan

Assuming the following 2 Listener.

NewAppointment::class => [
			SendStaffBookingConfirmationEmail::class,
			StaffBookingCustomerSync::class,
		],

do not implement __invoke but use the default handleEvent method the ListenerFactory will throw an exception. This happens because for the second listener the "alias" is an integer with value 1. This value needs to be normalized before creating the listener.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions