public function importSections($codeCountry = null)
 {
     $this->dispatcher->dispatch('display.message', new GenericEvent("Getting the countries from database ..."));
     if ($codeCountry) {
         $countries = $this->countryFetcher->getCountry($codeCountry);
     } else {
         $countries = $this->countryFetcher->getCountries();
     }
     foreach ($countries as $country) {
         $this->dispatcher->dispatch('display.message', new GenericEvent(sprintf("Getting the sections of %s ...", $country->getName())));
         $sections = $this->importSectionsReader->importSections($country);
         $this->dispatcher->dispatch('display.message', new GenericEvent(sprintf("Saving the sections of %s in database (%s) ...", $country->getName(), count($sections))));
         $this->sectionManager->saveSections($sections);
     }
 }
 public function getCountries($onlyActivated = false)
 {
     $data = $this->countryFetcher->getCountries($onlyActivated);
     return $data;
 }