private function loadLocation(OutputInterface $output, $country)
{
try {
$url = "https://raw.githubusercontent.com/elcodi/LocationDumps/master/" . $country . ".sql";
$content = file_get_contents($url);
if ($content) {
$stmt = $this->locationEntityManager->getConnection()->prepare($content);
$stmt->execute();
$this->printMessage($output, 'Elcodi', 'Country ' . $country . ' installed');
}
} catch (Exception $e) {
$this->printMessageFail($output, 'Elcodi', 'Country ' . $country . ' not installed');
}
return $this;
}