Are Promises/A a good event design pattern to implement even in synchronous languages like PHP?
- by Xeoncross
I have always kept an eye out for event systems when writing code in scripting languages. Web applications have a history of allowing the user to add plugins and modules whenever needed.
In most PHP systems you have a global/singleton event object which all interested parties tie into and wait to be alerted to changes.
Event::on('event_name',…