Adds a service as event listener
public addListenerService ( string $eventName, array $callback, integer $priority ) | ||
$eventName | string | Event for which the listener is added |
$callback | array | The service ID of the listener service & the method name that has to be called |
$priority | integer | The higher this value, the earlier an event listener will be triggered in the chain. Defaults to 0. |