PSR-14: All about Events
PSR-14: All about EventsIn the last installment we discussed the overall structure of PSR-14. Today I'd like to dive into the key aspect of any event system: The Events themselves.
Various different event systems structure events in different ways. Some require that it be an object. Others it's any arbitrary value. Others it's any number of arbitrary values, depending on the Event. Some really really want pass-by-reference arrays.
For PSR-14, we chose to standardize on an object and always an object. There were three main reasons for that:
Continue reading this post on SteemIt.
Comments are closed.