Introduction
Event dispatching helps your app respond to actions by sending messages that other parts can listen to and react.
When you want to run extra code after a user registers without changing the registration code.
When you need to send notifications after an order is placed.
When you want to log activities in your app without mixing logging code everywhere.
When you want to keep your code organized by separating concerns.
When you want to trigger multiple actions from one event.