Core/Handlers/MessageHandler.php
protected function dispatchEvent(Exchange $exchange, $eventName)
    {
        $event = new HandlerEvent($eventName);
        $event->setTimestampToCurrent();
        $event->setExchange($exchange);
        $this->eventDispatcher->dispatch($eventName, $event);
    }
protected function dispatchEvent(Exchange $exchange, $eventName)
    {
        $event = new HandlerEvent($eventName);
        $event->setTimestampToCurrent();
        $event->setExchange($exchange);
        $this->eventDispatcher->dispatch($eventName, $event);
    }
protected function dispatchEvent ( Exchange $ exchange , $ eventName ) { $ event = new HandlerEvent ( $ eventName ) ; $ event -> setTimestampToCurrent ( ) ; $ event -> setExchange ( $ exchange ) ; $ this -> eventDispatcher -> dispatch ( $ eventName , $ event ) ; }
Dispatch handler event depending on an event name

@param Exchange $exchange
@param $eventName
Dispatch handler event depending on an event name