public function dispatch($eventName, $params)
    {
        $event = new DedicatedEvent();
        $event->setParameters($params);
        $this->symfonyEventDispatcher->dispatch("maniaplanet.game.".$eventName, $event);
    }
public function dispatch($eventName, $params)
    {
        $event = new DedicatedEvent();
        $event->setParameters($params);
        $this->symfonyEventDispatcher->dispatch("maniaplanet.game.".$eventName, $event);
    }
public function dispatch ( $ eventName , $ params ) { $ event = new DedicatedEvent ( ) ; $ event -> setParameters ( $ params ) ; $ this -> symfonyEventDispatcher -> dispatch ( "maniaplanet.game." . $ eventName , $ event ) ; }
Dispatch event as it needs to be.

@param string $eventName Name of the event.
@param array $params Parameters
Dispatch event as it needs to be .