protected function dispatchMapEvent($eventName, $params)
    {
        $map = $this->mapStorage->getMap($params['map']['uid']);

        $this->dispatch(
            $eventName,
            [
                $params['count'],
                isset($params['time']) ? $params['time'] : time(),
                isset($params['restarted']) ? $params['restarted'] : false,
                $map,
            ]
        );
    }
protected function dispatchMapEvent($eventName, $params)
    {
        $map = $this->mapStorage->getMap($params['map']['uid']);

        $this->dispatch(
            $eventName,
            [
                $params['count'],
                isset($params['time']) ? $params['time'] : time(),
                isset($params['restarted']) ? $params['restarted'] : false,
                $map,
            ]
        );
    }
protected function dispatchMapEvent ( $ eventName , $ params ) { $ map = $ this -> mapStorage -> getMap ( $ params [ 'map' ] [ 'uid' ] ) ; $ this -> dispatch ( $ eventName , [ $ params [ 'count' ] , isset ( $ params [ 'time' ] ) ? $ params [ 'time' ] : time ( ) , isset ( $ params [ 'restarted' ] ) ? $ params [ 'restarted' ] : false , $ map , ] ) ; }
Dispatch map event.

@param $eventName
@param $params
Dispatch map event .