Currently, firing off events takes quite a bit of code and most of it is packing parameters. In order to keep the code cleaner and simpler to adapt, the use of Event Factories is needed.
To do this, create an EventFactory which takes an optional amount of parameters (...) and packs them and fires the event.
Currently, firing off events takes quite a bit of code and most of it is packing parameters. In order to keep the code cleaner and simpler to adapt, the use of Event Factories is needed.
To do this, create an EventFactory which takes an optional amount of parameters (...) and packs them and fires the event.