#[EventHandler]with combination of specific
AppointmentWasCreatedEventwill be published our
notifymethod will be called,
Ecotonethat we want to handle all events implementing specific Interface or extending specific abstract class. In that case all we need to do it is to type hint for this interface or abstract class.
Event Handlerwill be called for any event published in the system.
Event Handlerlisten for
billing.customer_was_invoiced.If you want to register it for class based routing also, then you should do it like below:
*expression anywhere you like