We have hosted the application eventdispatcher component in order to run this application in our online workstations with Wine or directly.


Quick description about eventdispatcher component:

The EventDispatcher component provides tools that allow your application components to communicate with each other by dispatching events and listening to them. Object-oriented code has gone a long way to ensuring code extensibility. By creating classes that have well-defined responsibilities, your code becomes more flexible and a developer can extend them with subclasses to modify their behaviors. But if they want to share the changes with other developers who have also made their own subclasses, code inheritance is no longer the answer. Consider the real-world example where you want to provide a plugin system for your project. A plugin should be able to add methods, or do something before or after a method is executed, without interfering with other plugins. This is not an easy problem to solve with single inheritance, and even if multiple inheritance was possible with PHP, it comes with its own drawbacks.

Features:
  • EventDispatcher component implements the Mediator and Observer design patterns to make all these things possible and to make your projects truly extensible
  • When an event is dispatched, it�s identified by a unique name (e.g. kernel.response), which any number of listeners might be listening to
  • When the dispatcher notifies listeners, it passes an actual Event object to those listeners
  • The base Event class contains a method for stopping event propagation
  • The dispatcher is the central object of the event dispatcher system
  • When an event is dispatched via the dispatcher, it notifies all listeners registered with that event


Programming Language: PHP.
Categories:
Communications

Page navigation:

©2024. Winfy. All Rights Reserved.

By OD Group OU – Registry code: 1609791 -VAT number: EE102345621.