public function dispatch($eventName, $params)
    {
        if (isset($this->enabledProviderListeners[$eventName])) {
            foreach ($this->enabledProviderListeners[$eventName] as $callback) {
                call_user_func_array($callback, $params);
            }
        }
    }
public function dispatch($eventName, $params)
    {
        if (isset($this->enabledProviderListeners[$eventName])) {
            foreach ($this->enabledProviderListeners[$eventName] as $callback) {
                call_user_func_array($callback, $params);
            }
        }
    }
public function dispatch ( $ eventName , $ params ) { if ( isset ( $ this -> enabledProviderListeners [ $ eventName ] ) ) { foreach ( $ this -> enabledProviderListeners [ $ eventName ] as $ callback ) { call_user_func_array ( $ callback , $ params ) ; } } }
Dispatch event to the data providers.

@param $eventName
@param $params
Dispatch event to the data providers .