better-wordpress-hooks
better-wordpress-hooks copied to clipboard
It would be create to have one listener class listen to any dispatched event that has a specific interface.
Assuming the following 2 Listener. ```php NewAppointment::class => [ SendStaffBookingConfirmationEmail::class, StaffBookingCustomerSync::class, ], ``` do not implement `__invoke` but use the default `handleEvent` method the `ListenerFactory` will throw an exception. This...
The FakeDispatcher will need a reference to the original dispatcher to dynamically forward non event-dispatching methods
Right now it's possible to attach many listeners two one event. The inverse is also very useful in many situations.
Right now it's not possible to create an event listener and bind it to an interface. The dispatcher will flag it as an invalid listener since it's neither a closure...
Right now it's only possible to either fake all or some events. But not all except some