/**
  * Register all leaflet encoders.
  *
  * @param InitializeEventDispatcherEvent $event The subscribed event.
  *
  * @return void
  *
  * @SuppressWarnings(PHPMD.Superglobals)
  */
 public function initializeEventDispatcher(InitializeEventDispatcherEvent $event)
 {
     $dispatcher = $event->getEventDispatcher();
     $initializer = new EventDispatcherInitializer();
     $initializer->addSubscribers($dispatcher, $GLOBALS['LEAFLET_ENCODERS']);
 }
 /**
  * Register all leaflet encoders.
  *
  * @param InitializeEventDispatcherEvent $event The subscribed event.
  *
  * @return void
  */
 public function initializeEventDispatcher(InitializeEventDispatcherEvent $event)
 {
     $dispatcher = $event->getEventDispatcher();
     $initializer = new EventDispatcherInitializer();
     $initializer->addSubscribers($dispatcher, $this->encoders);
 }