public function invokeGlobalEvent($eventName, EventArgs $event)
    {
        if ($this->eventManager->hasListeners($eventName)) {
            $this->eventManager->dispatchEvent($eventName, $event);
        }
    }
public function invokeGlobalEvent($eventName, EventArgs $event)
    {
        if ($this->eventManager->hasListeners($eventName)) {
            $this->eventManager->dispatchEvent($eventName, $event);
        }
    }
public function invokeGlobalEvent ( $ eventName , EventArgs $ event ) { if ( $ this -> eventManager -> hasListeners ( $ eventName ) ) { $ this -> eventManager -> dispatchEvent ( $ eventName , $ event ) ; } }
To invoke a global invent without using the ListenersInvoker.

@param $eventName
@param EventArgs $event
To invoke a global invent without using the ListenersInvoker .