/**
  * Initializes the controller before invoking an action method.
  *
  * Override this method to solve tasks which all actions have in
  * common.
  *
  * @return void
  */
 protected function initializeAction()
 {
     if (isset($this->settings['override']) && is_array($this->settings['override'])) {
         $override = $this->settings['override'];
         unset($this->settings['override']);
         $this->settings = array_merge($this->settings, $override);
     }
     $this->settings['allowedCountries'] = explode(',', $this->settings['allowedCountries']);
     $this->geocodeService->setSettings($this->settings);
     $this->locationRepository->setSettings($this->settings);
 }
 /**
  * Initializes the controller before invoking an action method.
  * Override this method to solve tasks which all actions have in
  * common.
  *
  * @return void
  */
 protected function initializeAction()
 {
     if (isset($this->settings['override']) && is_array($this->settings['override'])) {
         $override = $this->settings['override'];
         unset($this->settings['override']);
         $this->settings = array_merge($this->settings, $override);
     }
     $this->settings['allowedCountries'] = explode(',', $this->settings['allowedCountries']);
     $this->geocodeService->setSettings($this->settings);
     $this->locationRepository->setSettings($this->settings);
     $this->signalSlotDispatcher = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
 }